How to replace a matrix element
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am having a particular problem in the foll matrix:
A=[-1 1 0 0 0; 0 -1 1 0 0; 0 0 0 -1 1; -1 1 0 0 0]; I need to replace only a particular element(i.e.-1) with +1, while others remaining the same using matlab coding. I am not getting how to do this. It would be very grateful if anybody could help me in this regard..
Thanking you!
0 Kommentare
Antworten (1)
Image Analyst
am 5 Jan. 2013
Gee, sounds familiar: http://www.mathworks.com/matlabcentral/answers/57528-change-the-sign-of-a-particular-element-in-a-matrix Same course, perhaps?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrix Indexing 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!