Error using double. Conversion to double from cell is not possible
显示 更早的评论
for i=1:length(centroidA)
if ED1Vertical(i) >= ED2Vertical(i);
status(i) = {'less'};
elseif ED1Vertical(i) <= ED2Vertical(i);
status(i) = {'more'};
else
status(i) = {'equal'};
end
end
Error: Error using double. Conversion to double from cell is not possible.
centroidA is 11x1 cell with 1x2 double elements.
ED1Vertical and ED2Vertical are 11x1 double.
What is wrong with the code and how can I solve this?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!