To plot a sketch
4 次查看(过去 30 天)
显示 更早的评论
Hi!
I have a function here :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227029/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/227030/image.png)
I have to to sketch this.... Can I do this without giving any numerical value to the parameters a and b? I'll plot it as a function of x
Here is my attempt sorry if it's childish, I'm not professional
clear all
clc
syms a b x
Psi1= sqrt(3/b)*x/a;
Psi2=sqrt(3/b)* (b-x)/(b-a);
plot(x,Psi1)
hold on
plot(x,Psi2)
1 个评论
Stephen23
2019-7-1
"Can I do this without giving any numerical value to the parameters a and b?"
Of course: write a function and then call fplot.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surfaces, Volumes, and Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!