Minggu, 25 November 2012

MATLAB


 CARA MEMBUAT GRAFIK FUNGSI DALAM MATLAB

ezplot('(.5*x)+4',[-2 2])

 

ezplot('(x^2)-(2*x)-3',[-2 2])

 
>> y=[8 6 4 3 4 6]
y =
8     6     4     3     4     6
>> x=[0 1 2 2.5 3 4]
x =
  Columns 1 through 5
         0    1.0000    2.0000    2.5000    3.0000
  Column 6
    4.0000
>> plot(x,y)