value assigned to the variable might be unused.
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jakaria babar
le 27 Nov 2017
Commenté : jakaria babar
le 27 Nov 2017
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 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Whos dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!