Quantcast
Channel: MATLAB Central Newsreader - tag:"find"
Viewing all articles
Browse latest Browse all 55

Re: 'Find' in a for loop (beginner question)

$
0
0
On 10/16/2015 3:32 PM, followingseas wrote:
>
>>
>> Is it possible that that is indeed the correct answer? That is,
>> sigma(I,1) is the largest value for all the prior cases. To check,
>> output sigma(I,:) each time thru the loop or learn how to use the
>> debugger by setting breakpoints.
>
> Doesn't look to be the case. Just looking in the variable editor, the
> value of sigma goes up with depth across the board.


Need more info...like a miniature dataset and sample code that
reproduces the symptom. someone's answer can't be the right one--find()
returns empty ([]) instead of 0 when the criterion isn't met so it took
some other operation to get '0' on the displayed answer than just FIND()

--

Viewing all articles
Browse latest Browse all 55

Trending Articles