How to load the data in this case?
2 ビュー (過去 30 日間)
古いコメントを表示
As shown in the image there are two data sets 'a' and 'b'. How to load the data of 'b' into another variable, if a>0.1 and a<0.8?
Thanks

Thanks
0 件のコメント
採用された回答
Salaheddin Hosseinzadeh
2015 年 5 月 29 日
Hi,
Is that a excel file?! I don't get what you mean by loading.
If you just want to select some values do it like this.
c = a.*(a>0.1 & a<0.8);
So in variable c you will have what you want!
3 件のコメント
Salaheddin Hosseinzadeh
2015 年 5 月 29 日
編集済み: Salaheddin Hosseinzadeh
2015 年 5 月 29 日
So your data is already loaded into MATLAB. your question is not on how to load the data to MATLAB.
f = a.*(a>0.2 & a<0.7)
c = find(logical(f) == 1)
something like this should give you an answer
or
f = a.*(a>0.2 & a<=0.7) % if you also want 7 to be in c
c = find(logical(f) == 1)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!