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

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!

 Respuesta aceptada

Chunru
Chunru el 13 de Sept. de 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)

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 13 de Sept. de 2021

Respondida:

el 13 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by