How to replace a matrix element

조회 수: 1 (최근 30일)
MOHD
MOHD 2013년 1월 5일
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!

답변 (1개)

Image Analyst
Image Analyst 2013년 1월 5일

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by