add a number of nodes N between two known nodes
2 ビュー (過去 30 日間)
古いコメントを表示
How can I add a number of nodes N between two known nodes present in 'NODES'?
NODES = [-41.9153 -20.1597 65.3012;
-33.2487 -10.7068 7.4146];
figure
plot3(NODES(:,1),NODES(:,2),NODES(:,3),'k.','Markersize',30);
axis equal
0 件のコメント
採用された回答
Voss
2024 年 8 月 10 日
NODES = [-41.9153 -20.1597 65.3012;
-33.2487 -10.7068 7.4146];
N = 5;
t = linspace(0,1,N+2);
t([1 end]) = [];
NODES_new = interp1([0 1],NODES,t);
figure
plot3(NODES(:,1),NODES(:,2),NODES(:,3),'k.','Markersize',30);
hold on
plot3(NODES_new(:,1),NODES_new(:,2),NODES_new(:,3),'r.','Markersize',30);
axis equal
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!