Need help plotting a function in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
derrick li
am 5 Jun. 2019
Kommentiert: Mohammad Alhashash
am 7 Jun. 2019
Hi friends, I'm struggling to make a code for above problem. I would appreciate your help.
1 Kommentar
Akzeptierte Antwort
Mohammad Alhashash
am 5 Jun. 2019
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 Kommentare
Mohammad Alhashash
am 7 Jun. 2019
opps.. you are absolutely right.
no problem. could you please accept the answer?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parametric Spectral Estimation 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!