syntax - matrix manipulation SciLab -


i heard there way change matrix values without using loop. example:

a = [1 2; 3 4] 

there suppose way can make values example less 4 , changed them other value, let's zero. this:

a(...<4...)=0 

and answer should be:

 ans  =  0.    0.   0.    4.  

anyone know syntax this?

you don't need use find this; can use indexing instead :

a(a>=4) = 0; 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -