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

 采纳的回答

A = [1 2 3];
A = [ 1 2 3 A(1,1)]; % to perform A(1,1) it has to be defined before using

1 个评论

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!

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

版本

R2016a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by