How to find rest of the number in matrix ?
2 次查看(过去 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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!