How can i remove one element from this matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hussein Qenawy
am 7 Apr. 2019
Bearbeitet: Hussein Qenawy
am 7 Apr. 2019
D= [2 0 0 0 1; 2 2 0 0 1; 0 0 2 0 1; 0 0 0 2 1; 0 0 0 0 3] How can I remove this element (2,1)
<<www-mathworks-com-matlabcentral-answers-uploaded_files-212407-_20190407_075208.JPG>>
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 7 Apr. 2019
Bearbeitet: madhan ravi
am 7 Apr. 2019
In the question you asked second row has 4 elements while the rest has 5 elements, algebra??
You can't have hole in a matrix so replacing is an option:
D(2,1) = Nan % replace it with NaN or zero for example
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu NaNs finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!