matlab中else if语句只执行了第二句,程序没问题,逻辑上哪里有错误?

问题描述:

matlab中else if语句只执行了第二句,程序没问题,逻辑上哪里有错误?
weight=input('the weight of your purse:');
if weight
1个回答 分类:综合 2014-09-30

问题解答:

我来补答
weight=input('the weight of your purse:');
if weight2&&weight=70&&weight100;%weight>100可省略
disp('too heavy to send!');
end
end
end
可以改进一下:
weight=input('the weight of your purse:');
if weight2&&weight=70&&weight100;%%%weight>100;可省略
disp('too heavy to send!');
end
再问: 恩,看来我的错误在于‘2
 
 
展开全文阅读
剩余:2000
上一页:pass..
下一页:复合函数求值域