필터 지우기
필터 지우기

Hello, I am having trouble plotting this graph. Whenever I run my code I get an error that I am not using the plot function correctly or I get a blank graph. I think it may have to do with how I solved my equation for T. Thanks for any help.

조회 수: 2 (최근 30일)
To = 273
Pair = 400000
Vo = .00066667
cp = 1
syms T t
T = To - (Pair*((Vo*((T/To)^(-5/2))) - Vo)/cp)*t;
Eqn = solve(T, t)
t = 0:.001:1;
Teq = Eqn
plot(t,Teq)
  댓글 수: 2
Sarah Fries
Sarah Fries 2020년 9월 27일
The only equation that I have for T is [T = To - (Pair*((Vo*((T/To)^(-5/2))) - Vo)/cp)*t]. Because T is on both sides of the equation I used syms to solve the equation so it is just an equation of T(temp) with respect to t(time). Then I want to graph the plot of time (t) vs Temp (T).

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

채택된 답변

Star Strider
Star Strider 2020년 9월 27일
편집: Star Strider 2020년 9월 27일
You are using the wrong plot function.
Use fplot instead:
fplot(Teq,[0 1])
xlabel('t')
ylabel('Teq')
EDIT — (27 Sep 2020 at 18:04)
Added plot image —
.

추가 답변 (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