matlab / octave を使用してこのスパイラルをアニメーション化しようとしています。上下にスパイラルさせたい
t = 0:0.1:10*pi;
r = linspace (0, 1, numel (t));
z = linspace (0, 1, numel (t));
plot3 (r.*sin(t), r.*cos(t), z);
forループを使用してアニメーション化しようとしましたが、円錐形になります。以下のコードと画像を参照してください
clear all, clc,clf,tic
t = 0:0.1:10*pi;
r = linspace (0, 1, numel (t));
z = linspace (0, 1, numel (t));
for ii=1:length(r)
ii
plot3 (r.*sin(t(ii)), r.*cos(t(ii)), z);
hold on
%pause (.00001)
end
画像