How to plot both functions in one plot?
이전 댓글 표시
f = inline('sin(x/2)')
g = @(y) 2*cos(y)
댓글 수: 3
Rik
2019년 1월 12일
My two questions are:
- Why are you using an inline function?
- What have you tried yourself?
Shraddha Pandey
2019년 1월 14일
Walter Roberson
2019년 1월 14일
your f and g assignment are not being used.
답변 (1개)
madhan ravi
2019년 1월 13일
syms x y
fplot(sin(x/2))
hold on
fplot(2*cos(y))
help fplot
댓글 수: 2
Shraddha Pandey
2019년 1월 14일
madhan ravi
2019년 1월 14일
Looks like you solved the problem by your comment above? Did you read the documentation of fplot?? It belongs to symbolic math toolbox used to define variables symbolically.
카테고리
도움말 센터 및 File Exchange에서 Plot Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!