with a function y(x) how can i plot 2y(3-x)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Gregory Eickhoff
am 13 Sep. 2021
Beantwortet: Chunru
am 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!
0 Kommentare
Akzeptierte Antwort
Chunru
am 13 Sep. 2021
syms x
y = piecewise(x<0, 0.1*x^2, x>0, .5*x)
g = subs(y, x, 2*x)
fplot(g)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!