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 CenterFile Exchange에서 Loops 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