sintran - Fast Sine Transform

Version 1.0.0 (1.38 KB) by Chen Eleven
Calculate the coefficient of sines for equal spaced samples between [0, pi]
Updated 16 Feb 2022

View License

Given equal sampled data points [x0,x1,...,xn] between [0,pi], approximate it with sines
i.e. a0 sin(0x) + a1 sin(1x) + a2 sin(2x) + ... + an sin(nx)
return [a0, a1, a2, ... , an] when second input argument = 1.
anything else for [a0, a1, a2, ... , an] to [x0,x1,...,xn]
A - original data in columns
B - transformed data in columns
direction - set equal to 1 for nodal to spectral
anything else for spectral to nodal
Eleven Shiyi Chen

Cite As

Chen Eleven (2024). sintran - Fast Sine Transform (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired by: Fast Chebyshev Transform (1D)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes