how to allocate a matrix less than 1 to a variable?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jon Snow
il 17 Mag 2014
Modificato: Azzi Abdelmalek
il 17 Mag 2014
So lets say I have matrix a = [.2 , .3 , 2 , 5 , .7 , 8]
I want to allocate all values of a <= 1 to a variable b. so b should contain .2, .3, .7
How do I do this?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 17 Mag 2014
Modificato: Azzi Abdelmalek
il 17 Mag 2014
a = [.2 , .3 , 2 , 5 , .7 , 8]
b=a(a<=1)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!