filling a internal value of a matrix
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Paulo Silva
am 26 Jun. 2011
I(6)=1;
I(11)=1;
or
I([6 11])=1
3 Kommentare
Mohammad Golam Kibria
am 26 Jun. 2011
Walter Roberson
am 26 Jun. 2011
Please give an example of the desired output matrix.
Mohammad Golam Kibria
am 26 Jun. 2011
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!