double the number of coordinates of a vector while maintaining the trend of the line created with that coordinates
1 回表示 (過去 30 日間)
古いコメントを表示
HI! Is there a way to double the number of coordinates while maintaining that trend?
load L
figure
plot3(L(:,1),L(:,2),L(:,3),'k.','Markersize',10);
axis equal
0 件のコメント
採用された回答
Voss
2023 年 9 月 25 日
load L
figure('Position',[200 10 400 1000])
plot3(L(:,1),L(:,2),L(:,3),'ko','Markersize',6);
axis equal
Nt = size(L,1);
t = 1:Nt;
t_new = linspace(1,Nt,2*Nt-1);
L_new = interp1(t,L,t_new);
hold on
plot3(L_new(:,1),L_new(:,2),L_new(:,3),'r.','Markersize',4);
legend({'original','interpolated'},'Location','NorthOutside')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!