How to make one element in a matrix the same for other elements?
Show older comments
What I mean by the question is the following:
Say I have matrix A and my A(2,1) = constant
Is there a way that I can write A(2,1)=A(2,1)=A(2,3) and so on?
2 Comments
CS Researcher
on 1 May 2016
Can you explain a bit more? What exactly are you trying to do?
Bryan Galindo
on 1 May 2016
Edited: Bryan Galindo
on 1 May 2016
Accepted Answer
More Answers (1)
Roger Stafford
on 1 May 2016
You want every other element in the second row to be set equal to the first element?
A(2,:) = A(2.1);
Or do you have other elements to be set? Your description is not very clear.
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!