> 其他 >
matlab 绘制分段函数 x>=1,y=exp(-(x-1)^2),x
人气:291 ℃ 时间:2020-02-04 05:14:44
解答
x=-4:0.1:4;
y=(x=1).*(exp(-(x-1).^2));
plot(x,y,'--g')
text(-2,5,'\leftarrow y=x^2','FontSize',9)
text(2,0.7,'\leftarrow y=exp(-(x-1)^2)','FontSize',9)
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版