value assigned to the variable might be unused.
1 次查看(过去 30 天)
显示 更早的评论
what's wrong with the variable "v".Please help.
function [s,m,b] = non_decr(v)
v = [x,y,z];
if x<=y && y<=z
[s,m,b]=deal(x,y,z);
elseif x<=z && z<=y
[s,m,b]=deal(x,z,y);
elseif y<=x &&x<=z
[s,m,b]=deal(y,x,z);
elseif y<=z && z<=x
[s,m,b]=deal(y,z,x);
elseif z<=y &&y<=x
[s,m,b] = deal(z,y,x);
else
[s,m,b] = deal(z,x,y);
end
end
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!