How do I write a statement that will discard any values in an array if they are over a certain value?
Mostra commenti meno recenti
I want to say that if my height variable is > 1 then not to return the value in my matrix?
3 Commenti
Could you be more precise.. some code perhaps will help.. please go over this tutorial on how to ask a question (on Answers) and get a fast answer - http://www.mathworks.com/matlabcentral/answers/6200/
Seth
il 16 Mag 2013
José-Luis
il 16 Mag 2013
It is easier to import everything to Matlab and then do the processing. Alternatively you could preprocess in Excel if you are more comfortable doing that.
Risposte (1)
Ken Atwell
il 16 Mag 2013
I think you're looking for logical indexing:
heights = .1:.3:2
heights < 1
heights(heights<1)
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!