How to find rest of the number in matrix ?
3 ビュー (過去 30 日間)
古いコメントを表示
a = 1:10;
I = find(a>5)
aa = a(I)
bb = %%% How do I find the rest of the numbers??
0 件のコメント
採用された回答
その他の回答 (1 件)
Viranch Patel
2021 年 9 月 22 日
a = 1:10;
I = find(a>5);
aa = a(I);
bb = a;
bb(I)=[];
You can reassign the value of bb as 'a' and then can have other values by specifying bb(I) = [].
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!