HarmonicSeries.m

Space-Time series (1D, 2D, or 3D) as the sum of cosines.
4.0K 次下载
更新时间 2016/5/4

查看许可证

Syntax:

Z = harmonicseries(AMP, PER, PHA, LEN, DIR, T, X, Y);
Performs the sum of harmonics:

z(t,y,x) = sum [ a*cos(k*x + l*y - w*t + theta) ]

where:

a = AMP (amplitude)

k = K*cos(rdir) (x-component of wavenumber vector)

l = K*sin(rdir) (y-component of wavenumber vector)

K = sqrt(k^2+l^2) = (2*pi)./LEN (magnitude of wavenumber vector)

rdir = DIR*(pi/180) (direction of wavenumber vector in radians)

w = (2*pi)./PER (Temporal angular frequency)

theta = PHA*(pi/180) (Initial phase in radians)

This is useful when performing tests of Fourier Spectral Analysis, for example.

The program comes with the example on the screenshot.

引用格式

Carlos Adrian Vargas Aguilera (2024). HarmonicSeries.m (https://www.mathworks.com/matlabcentral/fileexchange/13420-harmonicseries-m), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polar Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Fixed inputs. Rewritten code.
BSD License