>> t = [0:0.01:0.98];
>> y1 = sin(2*pi*4*t);
>> plot(t,y1)
>> plot(t,y1)
>> hold on;
>> plot(t,y2,'r');
>> legend('sin','cos')
>> xlabel('time')
>> ylabel('value')
>> title('my plot')
>> cd 'E:\Machine Learning'; print -dpng 'myPlot.png'
>> close % close the figure
>> A = magic(5)
A =
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22
10 12 19 21 3
11 18 25 2 9
>> imagesc(A)
>> imagesc(A), colorbar, colormap gray;