Re: Graphing in matlab
[ QUOTE ]
[ QUOTE ]
Once you have a good array set up, enter
y = 36.8cos(x)
and then
plot(x,y)
[/ QUOTE ]
This is nitty, but Matlab won't recognize multiplication implicitly. Instead of
y = 36.8cos(x)
use
y = 36.8.*cos(x)
[/ QUOTE ]
FYP. Bad habit to not use element by element multiplication.
|