tiborsimon/smart-sinusoids
MLS package: To be able to install this library as an MLS package, you have to download it from GitHub as an MLS package: https://github.com/tiborsimon/smart-sinusoids/releases/latest
DEPENDENCY: This library is dependent on the Simple Input Parser library. You can install both library as an MLS package. Get the latest Simple Input Parser release from GitHub: https://github.com/tiborsimon/matlab-library-system/releases/latest
Sinusoid generator framework for MATLAB. Get the sinusoid wave you want, without worrying about the generation method.
Case 1
n - number of samples
N - periods in it
stem( ssin('n N', 200, 1.5) )
Case 2
L - signal lenght
N - periods in the signal
fs - with a given sample frequency
stem( ssin('L N fs', 0.001, 3, 48e3) )
Case 3
f - signal frequency
N - periods in the signal
fs - with a given sample frequency
stem( ssin('f N fs', 440, 1.3, 48e3) )
Case 4
f - signal frequency
n - number of samples
fs - with a given sample frequency
stem( ssin('f n fs', 440, 200, 48e3) )
Case 5
f - signal frequency
L - signal lenght
fs - with a given sample frequency
stem( ssin('f L fs', 800, 0.001, 48e3) )
In every case every parameter can be substituted with the eqvivalent counterparst. ie. f~T, fs~dt, L~n,dt ...
The amplitude (A) and phase (phi) are optional with the defualt values A=1 and phi=0.
Go to the GitHub page to find out more: https://github.com/tiborsimon/smart-sinusoids
Smart Sinusoids is MLS package compatible. Check out the tiborsimon/matlab-library-system here or on GitHub for more details: https://github.com/tiborsimon/matlab-library-system
See Tibor's other projects at: http://tiborsimon.io
Cite As
Tibor Simon (2024). tiborsimon/smart-sinusoids (https://github.com/tiborsimon/smart-sinusoids), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.3.0.5 | Image updated |
|
|
1.3.0.4 | Description updated |
|
|
1.3.0.3 | Description updated |
|
|
1.3.0.2 | Description updated |
|
|
1.3.0.1 | Description updated |
|
|
1.3.0.0 |
|