empty double matrix in case of nul value
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am receiving the message "4x0 empty double matrix ". when the output is nul. I want it to be 0. when its empty
code line:
malicious=n_selfish_veh(n_selfish_veh(:,3) & n_selfish_veh(:,4) < time_ee ,:)
0 Commenti
Risposte (1)
James Tursa
il 10 Lug 2021
Do you mean you want to do something like this:
if( isempty(malicious) )
malicious = 0;
end
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!