How to store array?

1 visualización (últimos 30 días)
Ls
Ls el 11 de Sept. de 2021
Respondida: David Hill el 11 de Sept. de 2021
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

Respuestas (1)

David Hill
David Hill el 11 de Sept. de 2021
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

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by