tiborsimon/smart-sinusoids

The easiest way to generate sine or cosine signals in MATLAB.
38 download
Aggiornato 14 apr 2017

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

Cita come

Tibor Simon (2025). tiborsimon/smart-sinusoids (https://github.com/tiborsimon/smart-sinusoids), GitHub. Recuperato .

Compatibilità della release di MATLAB
Creato con R2014a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Signal Processing Toolbox in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate

Versione Pubblicato Note della release
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

Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.
Per visualizzare o segnalare problemi su questo componente aggiuntivo di GitHub, visita GitHub Repository.