Can I make this line of code smaller?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
if isempty(XBest) XBest = 1e8; end
0 commentaires
Réponse acceptée
Askic V
le 3 Mar 2023
XBest=[2, 3, 4];
XBest(isempty(XBest)) = 1e8;
XBest
XAest = [];
XAest(isempty(XAest)) = 1e8;
XAest
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!