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

1 次查看(过去 30 天)
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