ive created a piecwise function y(x) = ...
now im tasked with plotting the functions say y(2x) or 2y(3-x). how can i do this using fplot()
thanks for the help!

 채택된 답변

Chunru
Chunru 2021년 9월 13일
syms x
y = piecewise(x<0, 0.1*x^2, x>0, .5*x)
y = 
g = subs(y, x, 2*x)
g = 
fplot(g)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2021년 9월 13일

답변:

2021년 9월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by