How to plot symbolic function with string specification?
显示 更早的评论
Briefly I want to execute
syms x
f = x
fplot(f,'b','LineWidth',2)
but a little fancier. I want the specification to be a string that I just can add. For instance:
syms x
f = x
str = ['b','LineWidth',2];
fplot(f,str)
Unfortunately this outputs an error
采纳的回答
更多回答(1 个)
May be you can consider using like below.
syms x ;
f = x ;
h = fplot(f) ;
h.LineWidth = 2 ;
类别
在 帮助中心 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

