Can I make this line of code smaller?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ishan Gawai
el 3 de Mzo. de 2023
Respondida: Askic V
el 3 de Mzo. de 2023
if isempty(XBest) XBest = 1e8; end
0 comentarios
Respuesta aceptada
Askic V
el 3 de Mzo. de 2023
XBest=[2, 3, 4];
XBest(isempty(XBest)) = 1e8;
XBest
XAest = [];
XAest(isempty(XAest)) = 1e8;
XAest
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!