How to store array?

1 回表示 (過去 30 日間)
Ls
Ls 2021 年 9 月 11 日
回答済み: David Hill 2021 年 9 月 11 日
I have
for x=0:0.1:3
A=[5*x 0;2*x^2 1]
B=[0;2.55]
Y=A\B
end
how do I store the value of Y in matlab

回答 (1 件)

David Hill
David Hill 2021 年 9 月 11 日
x=0:.1:3;
for k=1:length(x)
A=[5*x(k),0;2*x(k)^2,1]
B=[0;2.55]
Y(:,k)=A\B;
end

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by