Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can I plot an array by array?

조회 수: 1 (최근 30일)
Moj
Moj 2014년 12월 12일
마감: MATLAB Answer Bot 2021년 8월 20일
I solved an ODE with bvp5c function, but here I do not know how to plot my output data which is in array.
for ndx = 0:1e-1:0.9
pc = ndx; % pc changes the bcfun.
sol = bvp5c(@odefun,@bcfun_1,sol);
theta = deval(sol,zplot,1);
dtheta (1,:) = (theta(2)-theta(1))./(1e-2*d);
theta_0 (1,:) = ndx;
end
Although my code solves ODE fine, I cannot plot(theta_0,dtheta).
my main problem is how can I plot(theta_0,dtheta)? when I use this plot I just get discontinous plot.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by