how to conver this 2d countour line into something CAD can read as a profile e.g. dxf., dwg.or anthing that works

6 ビュー (過去 30 日間)
Hi there,
I generated a shape using contourf in MATLAB and I wish to put it into FEA analysis to make it a CAD model based on the same profile (green area) with certain thicknees. Can anyone please help or provide some guidance? Many thanks.
  10 件のコメント
Joan
Joan 2022 年 7 月 14 日
Thank you very much Katherine Zheng for your prompt response.

サインインしてコメントする。

採用された回答

Katherine Zheng
Katherine Zheng 2022 年 2 月 22 日
Download this DXFLib
% Below code should work for my code
C = contourf(fnx, flipud(fny), xg-ls, [0 0]); % plot the data
X = C(:,1); % X coordinate data
Y = C(:,2); % Y coordinate data
Z = zeros(size(C,1),1);
FID = dxf_open('polylines3.dxf');
dxf_polyline(FID,X,Y,Z);
dxf_close(FID);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisualization についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by