>> t = [0:0.01:0.98];
>> y1 = sin(2*pi*4*t);
>> plot(t,y1) 

Octave (4.Plot Data)

 

>> 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'


Octave (4.Plot Data)
>> 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)


Octave (4.Plot Data)

>> imagesc(A), colorbar, colormap gray;


Octave (4.Plot Data)

 

相关文章:

  • 2021-08-18
  • 2021-12-02
  • 2021-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-02-03
  • 2021-06-20
  • 2022-12-23
猜你喜欢
  • 2021-07-04
  • 2021-07-26
  • 2022-01-09
  • 2021-07-22
  • 2021-12-10
  • 2021-06-24
  • 2021-07-29
相关资源
相似解决方案