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

Antworten (1)

David Hill
David Hill am 11 Sep. 2021

1 Stimme

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

Produkte

Version

R2020b

Tags

Gefragt:

Ls
am 11 Sep. 2021

Beantwortet:

am 11 Sep. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by