s=['请输入第' int2str(i) '个数字:']; x(i)=input(s); if x(i) = -1 break;end
The expression to the left of the equals sign is not a valid target for an assignment.
if x(i) = -1这个=是赋值,判断是否相等用==