Need help plotting a function in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
![d32c5115c916d3030b4f0ee3e05466c.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/223132/d32c5115c916d3030b4f0ee3e05466c.jpeg)
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!