Error while accessing the STATS properties in regionprops
显示 更早的评论
if true
% code
STATS = regionprops(L, 'Extrema','Centroid');
if norm([STATS.Extrema(2,1), STATS.Extrema(2,2)]-[STATS.Extrema(1,1), STATS.Extrema(1,2)])<5
%statements
end
end
But I am getting an error stated below excatly on the line " if norm([STATS.Extrema(2,1), STATS.Extrema(2,2)]-[STATS.Extrema(1,1), STATS.Extrema(1,2)])<5 "
Field reference for multiple structure elements that is followed by more reference blocks is an error.
Can somebody please help how to solve this one? Thank you.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Heat Transfer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!