- refactored

This commit is contained in:
2022-06-30 13:32:40 +02:00
parent 77cd5261b1
commit 776932e5d1
144 changed files with 0 additions and 38 deletions
+21
View File
@@ -0,0 +1,21 @@
% ##################################################################################
% ## Funktion: lcsin.m; Abtastwerte generieren ##
% ##################################################################################
%
% function [y,t]=lcsin(A,f,phi,t1,t2,Fs)
%
% Generiert Abtastwerte eines zeitkontinuierlichen
% Sinussignals.
% A: Amplitude t1: Startzeit in Sekunden
% f: Frequenz in Hertz t2: Stopzeit in Sekunden
% phi: Initialisierungsphase Fs: Abtatstfrequenz in Hertz
function [y,t]=lcsin(A,f,phi,t1,t2,Fs)
if nargin ~= 6 % Ueberpruefen der Eingabeparameter
error('Falsche Anzahl an Eingabeparameter!')
end
t = (t1:1/Fs:t2)';
y = A*sin(2*pi*f*t+phi);
% ##### EOF #####