![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matlab
SherryLHang
这个作者很懒,什么都没留下…
展开
-
Matlab之print,fprint,fscanf,disp函数的用法
print: print函数可以把函数图形保存成图片: minbnd = -4*pi; maxbnd = 4*pi; t = minbnd:0.1*pi:maxbnd; plot(t, sin(t), 'g', 'Linewidth', 2); line([minbnd, maxbnd], [0, 0]); %绘制x轴 axis([-10, 10, -2, 2])转载 2015-08-24 03:23:50 · 638 阅读 · 0 评论 -
matlab 画二维折线图
X = [64, 128, 256, 512, 1024];Y = [2.5, 5.6, 7.2, 8.9, 10.4];plot(X, Y, 'k-o','linewidth', 2, 'markersize', 4);ylabel('时间/s','fontname','标楷体', 'fontweight', 'bold', 'fontsize', 12 );xlable('位数转载 2015-08-23 07:43:11 · 8368 阅读 · 2 评论 -
读取9columns文件生成几个columns的文件。
[a1, a2, a3,a4,a5,a6,a7,a8,a9] = textread('test.txt','%f%f%f%f%f%f%f%f%f'); %disp(a1);%disp(size(a1)); b=[a1];[r,c] = size(b);%disp(b(2,2)); fid= fopen('1column.txt','wt');原创 2015-08-23 08:48:12 · 191 阅读 · 0 评论