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!