如何在Octave中将数据点包裹在对象周围>>

问题描述 投票:0回答:1

我正在尝试将信号包裹在双曲锥周围(该锥看起来像http://www.sectioaurea.com/sectioaurea/the_golden_angle.htm,我已经发现将数据包裹在圆柱周围。

请参见下面带有包装数据的圆柱体。

%% // Generate sample data
x = linspace(0,10*pi) ;
y2 = cos(x) ;
y1 = 10*cos(x/10) ;
y = y1+y2 ; y = y-min(y) ;
figure, 
plot(x,y,'-o') ;

%% // Basic cylinder (just for background)
[Xc,Yc,Zc] = cylinder(1*ones(1,50),50);
Zc = Zc * max(y) ;
surf(Xc,Yc,Zc) ;
hold on 

%% // Fold the points around the cylinder
Number_of_turn = 2 ;
xrange = [min(x),max(x)] ;
xspan = xrange(2)-xrange(1) ;
xc = x / xspan * 2*pi * Number_of_turn ;

Xp = cos(xc) ;
Zp = y ;
Yp = sin(xc) ;

plot3(Xp,Yp,Zp,'-ok') ;

Image

但是我不确定如何将其包装在双曲线锥周围的数据

(锥看起来像这个http://www.sectioaurea.com/sectioaurea/the_golden_angle.htm

我正在Ubuntu 18.04 64位中使用Octave 4.2.2

我正在尝试将信号包裹在双曲锥周围(该锥看起来像这样http://www.sectioaurea.com/sectioaurea/the_golden_angle.htm),我发现可以将数据包裹在圆柱周围。参见...

arrays 3d octave hyperbolic-function
1个回答
1
投票

这里是一个例子

© www.soinside.com 2019 - 2024. All rights reserved.