Trying to plot symbolic function
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to plot (E_2/E_m) vs V_f which I have denoted (E_2/E_m) as y_1 in my code. The range for V_f should be from 0 to 1. Can someone please help me with plotting the symoblic constant V_f vs (E_2/E_m), it would be greatly appreciated. Attatched is im age of my code and my code underneith it.
E_2f = 14.8;
E_m = 3.45;
v_m = 0.36
%Vm = 1 - Vf
syms V_f
E_2 = ((E_2f)*(E_m))./((V_f)*(E_m)+(1-V_f)*(E_2f));
y_1 = E_2/E_m;
figure(1);
hold on;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/513212/image.png)
댓글 수: 0
답변 (1개)
Star Strider
2021년 2월 8일
Try this:
figure(1)
fplot(y_1, [1E-3 1E+3])
grid
The rest of the code is unchanged.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!