node creation using for loop
1 回表示 (過去 30 日間)
古いコメントを表示
how can we create nodeset having data like node_number, x,y,z coordinates say for 20 nodes using for loop
6 件のコメント
回答 (2 件)
KSSV
2020 年 9 月 10 日
This should help you:
Also have a look on:
0 件のコメント
Ameer Hamza
2020 年 9 月 10 日
Try using graph() object provided by MATLAB: https://www.mathworks.com/help/releases/R2020a/matlab/ref/graph.html. For example,
node_ID = string(1:20);
x = rand(20,1);
y = rand(20,1);
z = rand(20,1);
G = graph(zeros(20), node_ID);
G.Nodes.x = x;
G.Nodes.y = y;
G.Nodes.z = z;
plot(G)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!