SCI文件测试代码如下:
//////////////////////////////////////////////////////////////////////////////////////////////////
function tax()
// 当x为1-6000时,会提示“未定义的变量”
// 当x为5000-6000时,不会有问题
// 不知道是否为变量与判断语句的问题
x=[1:1:6000];
if(x>4500)
y=x*0.1-105;
end
if(x>1500)
y=x*0.03-0;
end
xtitle('测试',"x","y");
plot(y);
endfunction
tax();
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
function tax()
// 当x为1-6000时,会提示“未定义的变量”
// 当x为5000-6000时,不会有问题
// 不知道是否为变量与判断语句的问题
x=[1:1:6000];
if(x>4500)
y=x*0.1-105;
end
if(x>1500)
y=x*0.03-0;
end
xtitle('测试',"x","y");
plot(y);
endfunction
tax();
//////////////////////////////////////////////////////////////////////////////////////////////////