Need help plotting a function in matlab
2 ビュー (過去 30 日間)
古いコメントを表示

Hi friends, I'm struggling to make a code for above problem. I would appreciate your help.
採用された回答
Mohammad Alhashash
2019 年 6 月 5 日
x = -10:0.05:10;
fun_x_1 = exp(-0.3*x(x<0));
fun_x_2 = sin(x(x>=0).^3)-sin(x(x>=0).^2)+1;
plot(x(x<0),fun_x_1,x(x>=0),fun_x_2)
2 件のコメント
Mohammad Alhashash
2019 年 6 月 7 日
opps.. you are absolutely right.
no problem. could you please accept the answer?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!