 |
BEGINNING MATLAB
x = 0:0.04*pi:2*pi ; y = sin(x); plot(x,y) In the above, the single statement y = sin(x), takes the sine of all 51 elementsofxandputstheresultinthecorrespondingelementsofthevector y. InMatlabfunctionsmaybeappliedinthiselementbyelementmanner toarrays. Exer
www.rbfsrus.com |
 |