how can i exclude rows from a matrix
27 ビュー (過去 30 日間)
古いコメントを表示
MAHMOUD ALZIOUD
2017 年 10 月 20 日
コメント済み: Cyrus Rezvanifar
2017 年 10 月 20 日
Dear Guys, I have a question that will help me a lot in my research. lets say I have a matrix of 3000*2 dimensions. the first 2900 rows are number 02 repeated in each row. the last 100 rows carry number 01. I do not need this number one rows. How can i tell MATLAB to read just the first 2900 or to exclude the outliers such as number 01 here? thank you guys
2 件のコメント
採用された回答
Cyrus Rezvanifar
2017 年 10 月 20 日
編集済み: Cyrus Rezvanifar
2017 年 10 月 20 日
Simply try the two lines of code below, and it would remove the 1's elements from your data:
Data=str2num(Month_of_Data);
Data(2785:end)=[]
Let me know if this is what you needed to do
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!