referencing a matrix value to another matrix value within the same matrix

How do I essentially do the following
A = [ 1 2 3 A(1,1)];
Where I want the first row fourth column to equal the value from the first row first column which is already defined.
I get an error when I try to do this

 Akzeptierte Antwort

madhan ravi
madhan ravi am 6 Dez. 2018
Bearbeitet: madhan ravi am 6 Dez. 2018
A = [1 2 3];
A = [ 1 2 3 A(1,1)]; % to perform A(1,1) it has to be defined before using

1 Kommentar

If this is what you were looking for make sure to accept the answer , i can see that you haven't responded to any of the answerers in your previous questions!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Produkte

Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by