empty double matrix in case of nul value
9 次查看(过去 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!