"Kirk" <kwythers.nospam@umn.edu> wrote in message
news:j1u13o$87h$1@newscl01ah.mathworks.com...
> "Steven_Lord" <slord@mathworks.com> wrote in message
> <j1u07o$50j$1@newscl01ah.mathworks.com>...
*snip*
> I did look at the documentation. Perhaps I am misinterpreting the text, "s
> = std(X,flag) for flag = 0, is the same as std(X). For flag = 1, std(X,1)
> returns the standard deviation using (2) above, producing the second
> moment of the set of values about their mean"
>
> I am intending to use flag = 1, (first method), so I left that argument
> out.
You can't do that. It would be like me calling you "Krk"  I intended for
the second letter to be "i" so I left it out. [Okay, kind of a bad example
because the human brain tends to be good at "filling in" the missing details
when confronted with a situation like that. MATLAB, and computer programs in
general, aren't that good.]
> Also I want the function calculated along the along the 2nd dimension, so
> I used that argument (2).
> Perhaps what the help docs mean is:
>
> If you are going the use the third argument, you must use the second
> argument. Otherwise MATLAB will not know the the second value is the third
> argument.
Yes, that is correct. In general, whenever you want to use the Nth input
argument to a function, you must specify something the function recognizes
for the 1st, 2nd, ... (N1)st inputs.

Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
