1 設置搜索路徑
2 hello world
(1) disp('hello world !!!')
(2) fprintf('%s\n', 'hello world')
3 plot
x=1:0.01:10;
y=sin(x);
plot(x,y);
f=getframe(gca);
imwrite(f.cdata,'1.png');
(1) disp('hello world !!!')
(2) fprintf('%s\n', 'hello world')
x=1:0.01:10;
y=sin(x);
plot(x,y);
f=getframe(gca);
imwrite(f.cdata,'1.png');