How to delete multiple of the Value in Array
3 ビュー (過去 30 日間)
古いコメントを表示
Hello, I have the following array I want to delete the values, which are multiple of any values
How can i do that in MATLAB
1 件のコメント
Rik
2022 年 12 月 29 日
Why did you post a duplicate question instead of responding that this isn't what you wanted?
採用された回答
Chetan Bhavsar
2022 年 12 月 20 日
A = [1 2 3 4 5 6 7 8 9 10] % Initial array
A(mod(A,3) == 0) = [] % Delete elements that are multiples of 3
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!