For Programmers: Free Programming Magazines  


Home > Archive > Matlab > August 2007 > Re: one liner?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: one liner?
sorench@gmail.com

2007-08-30, 4:29 am

On Aug 29, 5:11 pm, richardsta...@comcast.net wrote:
> On Wed, 29 Aug 2007 16:56:00 -0700, sore...@gmail.com wrote:
>
>
>
>
>
>
>
> You can write
> ind=max(find(vec));
>
> although this doesn't address the general issue of being able to index
> a vector result in one line.
> -Dick Startz- Hide quoted text -
>
> - Show quoted text -


Thanks,
Yes it works for that particular case of course.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com