How can i create MxN matrix?

10 ビュー (過去 30 日間)
Gn Gnk
Gn Gnk 2019 年 10 月 19 日
コメント済み: Gn Gnk 2019 年 10 月 20 日
Hello ,
i have a package r[k] that contains k=1,...N symbols(N=1000) .So , i have a matrix 1x1001. I want to make l=5000 packages .How can i make this happen ?
i thougth that i should make a matrix 5001x1001 .Is this correct? And if so , how can i make this happen in matlab code?

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 10 月 19 日
Hi,
you are going to create a linear system of equations (augmented matrix) 5001 - by - 1001, then
A_M = ones(5001, 1001); % any standart matrices can be employed
% wish to create a symbols and equations
syms x[1,1001]
EQN = A_M*rot90(x);
% Note that this is rather slow and inefficient way to handle linear systems
Good luck.
  2 件のコメント
John D'Errico
John D'Errico 2019 年 10 月 19 日
Hoping to solve a linear system with thousands of unknowns in symbolic form is asking for code that runs literally forever.
Gn Gnk
Gn Gnk 2019 年 10 月 20 日
Thank you for your answer , but first of all matlab doesnt accept syms x[1,1001] .Also if instead of x i am gonna write the line as :
EQN=A_M*rot90(x);
a matrix 5001x1 is created which is wrong because i want 5000 packages that contains 1001 symbols , so a 5001x1001 .
Thank you for your quick response.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by