From: MatlaBeginner on
Hi everyone!
I am beginner in MATLAB programming and i need your help.
my question is:
I have 3 sinusoidal signal
and i add a random noise to sum of these signals.
s_1=1*sin(2*pi*5*t); % create a 5 Hz sine wave
s_2=.5*sin(2*pi*10*t); % create a 10 Hz sine wave
s_3=3*sin(2*pi*1*t); % create a 1 Hz sine wave
sigsum=(s_1+s_2+s_3)/4.5; %sum of these signals
sigmix1=awgn(sigsum,20); %add noise to the sum.

I want to write a m-file compute estimate of a 2nd and a 20th order AR
model parameters of sigmix1 using the following methods:
-Burg
-Covariance
-Modified covariance
-Yule-Walker
From: Wayne King on
MatlaBeginner <shoorideh(a)gmail.com> wrote in message <79bc9243-546e-4a1d-9fad-602d11154c70(a)a21g2000yqn.googlegroups.com>...
> Hi everyone!
> I am beginner in MATLAB programming and i need your help.
> my question is:
> I have 3 sinusoidal signal
> and i add a random noise to sum of these signals.
> s_1=1*sin(2*pi*5*t); % create a 5 Hz sine wave
> s_2=.5*sin(2*pi*10*t); % create a 10 Hz sine wave
> s_3=3*sin(2*pi*1*t); % create a 1 Hz sine wave
> sigsum=(s_1+s_2+s_3)/4.5; %sum of these signals
> sigmix1=awgn(sigsum,20); %add noise to the sum.
>
> I want to write a m-file compute estimate of a 2nd and a 20th order AR
> model parameters of sigmix1 using the following methods:
> -Burg
> -Covariance
> -Modified covariance
> -Yule-Walker

Hi, You're in luck! Those algorithms are all available in the Signal Processing Toolbox. See

>>doc aryule
>>doc arcov
>>doc armcov
>>arburg

Hope that helps,
Wayne
From: MatlaBeginner on
On May 8, 11:24 pm, "Wayne King" <wmkin...(a)gmail.com> wrote:
> MatlaBeginner <shoori...(a)gmail.com> wrote in message <79bc9243-546e-4a1d-9fad-602d11154...(a)a21g2000yqn.googlegroups.com>...
> > Hi everyone!
> > I am beginner in MATLAB programming and i need your help.
> > my question is:
> > I have 3 sinusoidal signal
> > and i add a random noise to sum of these signals.
> > s_1=1*sin(2*pi*5*t);              % create a 5 Hz sine wave
> > s_2=.5*sin(2*pi*10*t);             % create a 10 Hz sine wave
> > s_3=3*sin(2*pi*1*t);                       % create a 1 Hz sine wave
> > sigsum=(s_1+s_2+s_3)/4.5;       %sum of these signals
> > sigmix1=awgn(sigsum,20);           %add noise to the sum.
>
> > I want to write a m-file compute estimate of a 2nd and a 20th order AR
> > model parameters of sigmix1 using the following methods:
> > -Burg
> > -Covariance
> > -Modified covariance
> > -Yule-Walker
>
> Hi, You're in luck! Those algorithms are all available in the Signal Processing Toolbox. See
>
> >>doc aryule
> >>doc arcov
> >>doc armcov
> >>arburg
>
> Hope that helps,
> Wayne

thanks
but i want to write m-file and i dont want to use toolboxes and i dont
know how to relate toolbox to matlab editor too.
my second problem is that i dont kow exactly what should i find?!
From: Wayne King on
MatlaBeginner <shoorideh(a)gmail.com> wrote in message <664516ef-e965-4475-8be7-658a3ebd7a83(a)j33g2000yqn.googlegroups.com>...
> On May 8, 11:24 pm, "Wayne King" <wmkin...(a)gmail.com> wrote:
> > MatlaBeginner <shoori...(a)gmail.com> wrote in message <79bc9243-546e-4a1d-9fad-602d11154...(a)a21g2000yqn.googlegroups.com>...
> > > Hi everyone!
> > > I am beginner in MATLAB programming and i need your help.
> > > my question is:
> > > I have 3 sinusoidal signal
> > > and i add a random noise to sum of these signals.
> > > s_1=1*sin(2*pi*5*t);              % create a 5 Hz sine wave
> > > s_2=.5*sin(2*pi*10*t);             % create a 10 Hz sine wave
> > > s_3=3*sin(2*pi*1*t);                       % create a 1 Hz sine wave
> > > sigsum=(s_1+s_2+s_3)/4.5;       %sum of these signals
> > > sigmix1=awgn(sigsum,20);           %add noise to the sum.
> >
> > > I want to write a m-file compute estimate of a 2nd and a 20th order AR
> > > model parameters of sigmix1 using the following methods:
> > > -Burg
> > > -Covariance
> > > -Modified covariance
> > > -Yule-Walker
> >
> > Hi, You're in luck! Those algorithms are all available in the Signal Processing Toolbox. See
> >
> > >>doc aryule
> > >>doc arcov
> > >>doc armcov
> > >>arburg
> >
> > Hope that helps,
> > Wayne
>
> thanks
> but i want to write m-file and i dont want to use toolboxes and i dont
> know how to relate toolbox to matlab editor too.
> my second problem is that i dont kow exactly what should i find?!

Hi, Are you saying that you just want to use base MATLAB functions/objects in coding these algorithms? In that case you won't be able to avail yourself of some convenient Signal Processing Toolbox functions like corrmtx and levinson.
From: MatlaBeginner on
On May 8, 11:58 pm, "Wayne King" <wmkin...(a)gmail.com> wrote:
> MatlaBeginner <shoori...(a)gmail.com> wrote in message <664516ef-e965-4475-8be7-658a3ebd7...(a)j33g2000yqn.googlegroups.com>...
> > On May 8, 11:24 pm, "Wayne King" <wmkin...(a)gmail.com> wrote:
> > > MatlaBeginner <shoori...(a)gmail.com> wrote in message <79bc9243-546e-4a1d-9fad-602d11154...(a)a21g2000yqn.googlegroups.com>...
> > > > Hi everyone!
> > > > I am beginner in MATLAB programming and i need your help.
> > > > my question is:
> > > > I have 3 sinusoidal signal
> > > > and i add a random noise to sum of these signals.
> > > > s_1=1*sin(2*pi*5*t);              % create a 5 Hz sine wave
> > > > s_2=.5*sin(2*pi*10*t);             % create a 10 Hz sine wave
> > > > s_3=3*sin(2*pi*1*t);                       % create a 1 Hz sine wave
> > > > sigsum=(s_1+s_2+s_3)/4.5;       %sum of these signals
> > > > sigmix1=awgn(sigsum,20);           %add noise to the sum.
>
> > > > I want to write a m-file compute estimate of a 2nd and a 20th order AR
> > > > model parameters of sigmix1 using the following methods:
> > > > -Burg
> > > > -Covariance
> > > > -Modified covariance
> > > > -Yule-Walker
>
> > > Hi, You're in luck! Those algorithms are all available in the Signal Processing Toolbox. See
>
> > > >>doc aryule
> > > >>doc arcov
> > > >>doc armcov
> > > >>arburg
>
> > > Hope that helps,
> > > Wayne
>
> > thanks
> > but i want to write m-file and i dont want to use toolboxes and i dont
> > know how to relate toolbox to matlab editor too.
> > my second problem is that i dont kow exactly what should i find?!
>
> Hi, Are you saying that you just want to use base MATLAB functions/objects in coding these algorithms? In that case you won't be able to avail yourself of some convenient Signal Processing Toolbox functions like corrmtx and levinson.


Hi, this is what exactly asked to do."write a m-file to compute
estimate of a 2nd and a 20th order AR model parameters of sigmix1
using the following methods -Burg, -Covariance,-Modified covariance,-
Yule-Walker "

may be i can use aryule,arcov,armcov,arburg that you mentioned but
i dont know how can i use them in my m-file:
s_1=1*sin(2*pi*5*t); % create a 5 Hz sine wave
s_2=.5*sin(2*pi*10*t); % create a 10 Hz sine wave
s_3=3*sin(2*pi*1*t); % create a 1 Hz sine wave
sigsum=(s_1+s_2+s_3)/4.5; %sum of these signals
sigmix1=awgn(sigsum,20); %add noise to the sum.

thanks