필터 지우기
필터 지우기

Conversion to double from sym is not possible.

조회 수: 2 (최근 30일)
mohamed saber
mohamed saber 2011년 10월 30일
i want to plot the relation between time&velocity by differentiate displacement , but there is an error
syms x t;
x=2.5*cos(10*pi*t);
vel=diff(x,'t');
i=0;
for t=0:.01:100;
i=i+1;
x(i)=x;
vel(i)=vel;
plot(t,vel)
end
??? Error using ==> plot
Conversion to double from sym is not possible.
can you help me ?

답변 (1개)

bym
bym 2011년 10월 30일
you don't need the for loop
ezplot(x,vel,[0,100])

카테고리

Help CenterFile Exchange에서 2-D Function Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by