[Scilab-users] Generation of linear frequency

Stanislav krotersv at gmail.com
Sun Mar 10 15:02:13 CET 2013


Hi.

function [x] =chirp (t, f0, t1, f1, varargin)

[ lhs, rhs] =argn (0);
if rhs < 5 then
    phi = 0;
else
    pause
    phi = varargin(1);
end
    mu = (f1-f0).*t1;
    x = exp(%i * 2 * %pi * ( mu./2.*(t.^2) + f0.*t + phi/360));
endfunction

t = 0:0.001:1;
x = chirp (t, 0,1,150);
scf();plot(real(x));xgrid

Stanislav




--
View this message in context: http://mailinglists.scilab.org/Generation-of-linear-frequency-tp4026202p4026206.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list