Deleting Certain Numbers in a Matrix

1 回表示 (過去 30 日間)
James
James 2014 年 4 月 7 日
回答済み: Joseph Cheng 2014 年 4 月 7 日
Hi,
I have a matrix "A" that is a 350x1 matrix that is populated with numbers from 0-10, but these numbers are not all intigers. For example there are 6.7, 9.1 along with the intigers in the data. I have caluculted the 25th percentile to be 8.4. I want to remove every number above 8.4 from the matrix as I am no longer interested in those numbers. How would I do that?
Thanks

採用された回答

Joseph Cheng
Joseph Cheng 2014 年 4 月 7 日
you can do this
A(A>8.4)=[];

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by