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

 Respuesta aceptada

madhan ravi
madhan ravi el 6 de Dic. de 2018
Editada: madhan ravi el 6 de Dic. de 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 comentario

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!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Versión

R2016a

Etiquetas

Preguntada:

el 6 de Dic. de 2018

Comentada:

el 6 de Dic. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by