|
dpb <none@non.net> wrote in message <ktdl81$f6c$1@speranza.aioe.org>...
> On 8/1/2013 6:53 AM, Barry Williams wrote:
> > "IceHaven" wrote in message <ktbvqn$173$1@newscl01ah.mathworks.com>...
> >> does the basic matlab program have a range function that computes
> >> max(array)-min(array) of an array? i found that there's a range
> >> function in the statistics toolbox, but i'd expect there to be one in
> >> the regular program as well, right?
> >
> > rangex=max(max(x))-min(min(x));
>
> Can eliminate the nested calls w/
>
> rangex=max(x(:))-min(x(:));
>
> --
>
You're right, dpb; your solution is more elegant.
Barry
|