help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help - two different syntaxes produce different results


From: Joe Tusek
Subject: help - two different syntaxes produce different results
Date: Wed, 30 Oct 2019 12:25:29 +0000

Hi,

 

When I run the following code

 

v = [68   73   77   85

   95   85  104   99

   68  181  162   92

   98  130  123   93

   94   87   87   88]

 

[a, b]= find(v>100)

v(a,b)= 0

 

av = v = [68   73   77   85

   95   85  104   99

   68  181  162   92

   98  130  123   93

   94   87   87   88]

 

[c]= find(av>100)

av(c)= 0

 

The top script produces 6 cells with 0 in them and the bottom script produces 5 cells with zero in them. It seems to me that these should produce the same result?

 

I am using W10 and Oct 5.1.0.

 

Regards
Joe

 

Joe Tusek (BE MBA)
Technical Director
23 Warabrook Boulevard, Warabrook, NSW 2304
P +61 2 4961 9000  M +61 418 669 250

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]