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

1 vue (au cours des 30 derniers jours)
Gregory Eickhoff
Gregory Eickhoff le 13 Sep 2021
Réponse apportée : Chunru le 13 Sep 2021
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!

Réponse acceptée

Chunru
Chunru le 13 Sep 2021
syms x
y = piecewise(x<0, 0.1*x^2, x>0, .5*x)
y = 
g = subs(y, x, 2*x)
g = 
fplot(g)

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Tags

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by