필터 지우기
필터 지우기

How to use symbolic equation?

조회 수: 1 (최근 30일)
동훈
동훈 2024년 1월 17일
댓글: Star Strider 2024년 1월 17일
it says, 'data needs to be numeric, datetime, duration, categorical, doubled type array'
I want to plot 'gm' vs 'Ao'

채택된 답변

Star Strider
Star Strider 2024년 1월 17일
For symbolic plots, use the fplot function —
syms Wosc R C gm
Ao = gm*R/(1+2*pi*Wosc*R*C);
pretty(Ao)
R gm ----------------- 2 pi C R Wosc + 1
R = 1000;
C = 27.6E-12;
Wosc = 1E6;
Ao = subs(Ao)
Ao = 
Ao = vpa(Ao, 5)
Ao = 
figure
fplot(Ao, [1E-9, 1E-4])
grid
Ax = gca;
Ax.XScale = 'log';
xlabel('gm')
ylabel('Ao')
.
  댓글 수: 2
동훈
동훈 2024년 1월 17일
It was very helpful!
Star Strider
Star Strider 2024년 1월 17일
Thank you!

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2024년 1월 17일
The basic problem is that subs() does not change the thing being substituted into. You would need to have Ao = subs(...)
Also, you cannot plot() a symbolic expression. You can fplot() it -- if you do then the default is to plot over the range -5 to +5, so you would want to supply the interval to fplot() over.
  댓글 수: 1
동훈
동훈 2024년 1월 17일
I found my self stupid :O

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

카테고리

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