matlab中连通区域的包围盒
错误 使用矩形时出错 值必须是4元素向量 detecttext中的错误(第49行)matlab中连通区域的包围盒,matlab,matlab-guide,Matlab,Matlab Guide,错误 使用矩形时出错 值必须是4元素向量 detecttext中的错误(第49行) 尝试将其设为行而不是列: rectangle('position',Ibox(:,cnt),'edgecolor','r'); rectangle('position',Ibox(:,cnt),'edgecolor','r'); Ibox(:,cnt).'
尝试将其设为行而不是列:
rectangle('position',Ibox(:,cnt),'edgecolor','r');
rectangle('position',Ibox(:,cnt),'edgecolor','r');
Ibox(:,cnt).'