Adding numbers in an array
古いコメントを表示
Hi, I have an array like A=[3;4 4; 6 6 ;5 5 5; 1 1 1 1]. I want to assign ascending numbers into this array as A(:,2)=[1; 2 2 ; 3 3 ; 4 4 4 ; 5 5 5 5] corresponding to each distinct numbers in A. Does anyone know how to do it? Thanks
1 件のコメント
the cyclist
2017 年 3 月 5 日
Your notation for specifying A is not valid syntax, so it is unclear what you mean.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!