我怎样才能将多边形存储到一个列表?
8 Ansichten(30天)的
Altere Kommentare anzeigen
我有两个多边形Pol1和Pol2说。我如何将它们存储到一个列表,作为一个函数的输入。我的函数,从某种意义上说,应该是能从这个列表,然后挑出多边形图使用polyshape。
谢谢你!
Pol1 = [3 4;1 1;5 1];
Pol2 = [0 5;5 5;0 6;6 3];
0 Kommentare
Akzeptierte Antwort
大卫•希尔
我2020年1月31日
为什么不他们加载到一个单元阵列?
Pol1 = polyshape ([3 4;1 1;5 1]);
Pol2 = polyshape ([0 5;5 5;0 6;6 3]);
polyList = {Pol1, Pol2};