how to convert the data in cell array to .dxf file .

조회 수: 5 (최근 30일)
jahanzaib ahmad
jahanzaib ahmad 2019년 4월 30일
댓글: Adam Danz 2019년 5월 1일
i have multiple polygons in cell array ( varriable attached and figure) .how these polygons can be converted into .dxf file for further use in autocad ?

채택된 답변

jahanzaib ahmad
jahanzaib ahmad 2019년 5월 1일
FID = dxf_open('polygons.dxf');
FID = dxf_set(FID,'Color',[0 1 1]);
for i=1:length(BB)
a=BB{i};
X=a(:,1);
Y=a(:,2);
Z=zeros(length(X),1);
dxf_polyline(FID,X,Y,Z);
end
dxf_close(FID);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Import에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by