How to store array?

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 个)

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

类别

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

产品

版本

R2020b

标签

提问:

Ls
2021-9-11

回答:

2021-9-11

Community Treasure Hunt

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

Start Hunting!

Translated by