Plotting without values, using syms

조회 수: 1 (최근 30일)
Carlos Ojeda
Carlos Ojeda 2020년 5월 2일
댓글: Star Strider 2020년 5월 2일
I need to plot theta(t) vs V(t), but have no values for either.
clear all
close all
syms theta t ts tau V0
theta(t)=dsolve('Dtheta=1-theta-t/(ts/tau)')
V(t)=V0*(1-t/ts);
figure (1)
plot(V(t),theta(t),'o')
I'm getting the error: Non-numeric data is not supported in 'Line'
Is there a way around this?
  댓글 수: 1
Star Strider
Star Strider 2020년 5월 2일
You need values for all the constants as well, for example ‘ts’, ‘tau’, and the initial conditions.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by