フィルターのクリア

Problem of reading file in triangle_display.m software

1 回表示 (過去 30 日間)
ali algargary
ali algargary 2022 年 7 月 17 日
編集済み: ali algargary 2023 年 1 月 14 日
I am working on mesh displaying open source matlab code. When I make a run it gives me the following errors. The code and files are attached below with the error messages.

採用された回答

KSSV
KSSV 2022 年 7 月 18 日
You may proceed like shown below.
nodes = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1068640/aaa_ele.txt','HeaderLines',1) ; % read the nodal data
vert = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1068645/aaa_node.txt','HeaderLines',1); % read the vertices data
% Remove the last lines
nodes(end,:) =[] ; % last line has some text, remove it
vert(end,:) = [] ; % last lines has some text, remove it ;
t = table2array(nodes(:,2:4)) ; % nodal connectivity data
p = table2array(vert(:,2:3)) ; % coordinates/ vertices
triplot(t,p(:,1),p(:,2)) ; % plot the mesh
  1 件のコメント
KSSV
KSSV 2022 年 7 月 19 日
So you want to use triangle_display...?

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by