myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
S

@Shreya_Nayak

Fourier Transforms

Octave
1 year ago
% Define parameters Fs = 1000; % Sampling frequency in Hz T = 1/Fs; % Sampling period in seconds L = 1000; % Length of the signal t = (0:L-1)*T; % Time vector % Define the function (sine wave in this case) f = 5; % Frequency of the sine wave in Hz y = sin(2 * pi * f * t); % Generate sine wave
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us