"patch" command error
显示 更早的评论
mac -OS
MATLAB version-2018a
I have two matrices one with vertices-(280×3) and the other one with faces-(556×3) .
Using patch command as follows
P=patch('Faces',f11,'Vertices',k1); %%%%%f11= face matrix and k1=vertex matrix.
set(P,'FaceColor','b','FaceAlpha',0.5);
set(P,'EdgeColor','k','LineWidth',2);
It gives the following error
Error using patch
Value must be of numeric type and greater than 1
Attached are the two files containing the matrices.
Any suggestions on how to eliminate this problem
Thanks.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!