Originally Posted by atlbraves49
Can anyone provide some actual help regarding these questions?
|
Regarding this specific question, you're probably looking for an inline function:
http://en.wikibooks.org/wiki/MATLAB_...able_Functions
That's the serial way of doing things. However, you can often perform operations on entire vectors. If you wanted to calculate, say, sin(x) between 0 and 2pi, in increments of 1/200*pi (and then plot the result), you'd do the following:
>> x=0:1/200*pi:2*pi %The colon format goes start:increment:end
>> y=sin(x) %This will generate a vector of y values for a bunch of x's
>> plot(x,y)
Additionally, perhaps start here:
http://en.wikibooks.org/wiki/MATLAB_Programming
Or here:
http://www.mathworks.com/access/help...b/bqr_2pl.html
But if you need a quick reference for a command within MATLAB, just type help COMMAND, for instance, getting help about the identity matrix creation function:
>> help eye