How to make one element in a matrix the same for other elements?
Afficher commentaires plus anciens
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 commentaires
CS Researcher
le 1 Mai 2016
Can you explain a bit more? What exactly are you trying to do?
Bryan Galindo
le 1 Mai 2016
Modifié(e) : Bryan Galindo
le 1 Mai 2016
Réponse acceptée
Plus de réponses (1)
Roger Stafford
le 1 Mai 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.
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!