[繪圖] 螺旋繪圖

看板MATLAB作者 (wc0952)時間13年前 (2012/12/03 17:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
程式碼如下 t = 0:pi/180:2*pi*30; r = linspace(5,0,length(t)); x = t/(2*pi); y = r.*cos(t); z = r.*sin(t); plot3(x,y,z); hold on t = 0:pi/180:2*pi*30; r = linspace(5,0,length(t)); x = t/(2*pi); y = 10+r.*cos(t); z = 5+r.*sin(t); plot3(x,y,z,'g'); t = 0:pi/180:2*pi*30; r = linspace(3,0,length(t)); x = t/(2*pi); y = r.*cos(t); z = 15+r.*sin(t); plot3(x,y,z,'r'); 畫了三個螺旋紋 不知道有沒有辦法讓尾巴收在一起 變成像一束花那樣 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 42.70.191.90
文章代碼(AID): #1Gl6eYWL (MATLAB)