> 其他 >
MATLAB分段函数
x=-5:0.1:5;
if x>=1
y=3*x.^2+1;
elseif -1
人气:303 ℃ 时间:2020-02-05 01:04:52
解答
x=-5:0.1:5;
if x>=1
y=3*x.^2+1;
else if -1不对啊,你运行试过了没?结果不正确clc,clear all x=-5:0.1:5; if x>=1y=3*x.^2+1; else if -1=1y=3*x.^2+1; else if -1
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版