how to convert empty double into zeros
9 次查看(过去 30 天)
显示 更早的评论
dear all I have an empty double matrix called Quad, this Quad supposed to be a double with size of 1*31 zeros. how can i please ask matlab that if it finds any empty double convert it to zeros. my code is the following and it says it does not work on double !
idx_9 = cellfun('isempty', Quad);
Quad(idx_9) = {zeros(1,31)};
2 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!