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!
0 件のコメント
採用された回答
Chunru
2021 年 9 月 13 日
syms x
y = piecewise(x<0, 0.1*x^2, x>0, .5*x)
g = subs(y, x, 2*x)
fplot(g)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!