help-octave
[Top][All Lists]
Advanced

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

Warning : Matlab-style short-circuit operation performed for operator |


From: Julien563
Subject: Warning : Matlab-style short-circuit operation performed for operator |
Date: Tue, 25 Oct 2016 04:34:46 -0700 (PDT)

...
if i_nouveau >=0 | i_nouveau<=nr & j_nouveau>=0 | j_nouveau<=nc;
                                if i >=0 | i<=nr & j>=0 | j<=nc;
                                        B(i_nouveau,j_nouveau)=A(i,j);
                                endif
endif
...
------------------

Hello evryone,

 I have the next message when i try to complete my loop for : 

Warning : Matlab-style short-circuit operation performed for operator | 
Error : test2: A(I,J): row index out of bounds; Value 1001 out of bound 1000

Where i am wrong?

Thx in advance

Best Regards 

Julien



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Warning-Matlab-style-short-circuit-operation-performed-for-operator-tp4680361.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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