empty double matrix in case of nul value
6 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
James Tursa
2021 年 7 月 10 日
Do you mean you want to do something like this:
if( isempty(malicious) )
malicious = 0;
end
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!