matrix definition through indivisual call

1 次查看(过去 30 天)
how to call matrix elements in terms of i j such that i can call indivisual element and then form a matrix.
  4 个评论
Walter Roberson
Walter Roberson 2019-8-30
I think they are asking how to do dynamic variable names.

请先登录,再进行评论。

回答(1 个)

Anmol Dhiman
Anmol Dhiman 2019-8-30
To solve a system of linear equations you can use Symbolic Math Toolbox. Refer to below Link
If you wish to create your own matrix for a given size, you can use zeros function. You can access the individual elements as A(i,j), where i represents number of rows and represents number of columns, as shown below
A = zeros(3,3)
A(1,1) =4
A(1,3) =5

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by