with a function y(x) how can i plot 2y(3-x)

조회 수: 1 (최근 30일)
Gregory Eickhoff
Gregory Eickhoff 2021년 9월 13일
답변: Chunru 2021년 9월 13일
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개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by