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!

