d32c5115c916d3030b4f0ee3e05466c.jpg
Hi friends, I'm struggling to make a code for above problem. I would appreciate your help.

1 件のコメント

Alex Sune
Alex Sune 2019 年 6 月 5 日
What have you tried so far?

サインインしてコメントする。

 採用された回答

Mohammad Alhashash
Mohammad Alhashash 2019 年 6 月 5 日

0 投票

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 件のコメント

derrick li
derrick li 2019 年 6 月 6 日
why you put .^2 inside fun_x_2 function? does it suppose to be fun_x_2 = sin(x(x>=0).^3)-sin(x(x>=0))+1? btw, thank you very much for your answer i really appreciate it
Mohammad Alhashash
Mohammad Alhashash 2019 年 6 月 7 日
opps.. you are absolutely right.
no problem. could you please accept the answer?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by