filling a internal value of a matrix
古いコメントを表示
Hi I have the following matrix
I=
0 1 0 0
0 0 1 1
0 1 0 0
0 0 1 0
I want the following output:
0 1 0 0
0 1 1 1
0 1 1 0
0 0 1 0
Is there any easy way to do that,easily?
Thanks
採用された回答
その他の回答 (1 件)
Paulo Silva
2011 年 6 月 26 日
I(6)=1;
I(11)=1;
or
I([6 11])=1
3 件のコメント
Mohammad Golam Kibria
2011 年 6 月 26 日
Walter Roberson
2011 年 6 月 26 日
Please give an example of the desired output matrix.
Mohammad Golam Kibria
2011 年 6 月 26 日
カテゴリ
ヘルプ センター および 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!