Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
cognitive radio

Subject: cognitive radio

From: Shie Chen

Date: 26 Mar, 2012 05:13:10

Message: 1 of 3

Hi,
I'm doing a project about cognitive radio, but I have difficulty in writing the matlab code for an equation. It's an integral of an exponential equation 1./(sqrt(2*pi).*sigma).*(exp(-(x-mu).^2./(sigma.^2))) from a certain value E to infinity, where sigma and mu are 1*3 matrix and x is the variable. Could anybody teach me how to write the matlab code?
If there is anything I can help, please let me know.

Amanda

Subject: cognitive radio

From: Bruno Luong

Date: 26 Mar, 2012 06:55:12

Message: 2 of 3

"Shie Chen" wrote in message <jkott5$c7$1@newscl01ah.mathworks.com>...
> Hi,
> I'm doing a project about cognitive radio, but I have difficulty in writing the matlab code for an equation. It's an integral of an exponential equation 1./(sqrt(2*pi).*sigma).*(exp(-(x-mu).^2./(sigma.^2))) from a certain value E to infinity, where sigma and mu are 1*3 matrix and x is the variable. Could anybody teach me how to write the matlab code?
> If there is anything I can help, please let me know.

In 1D use erf() and appropriate transformed variable in integral.

Bruno

Subject: cognitive radio

From: Shie Chen

Date: 27 Mar, 2012 03:20:16

Message: 3 of 3

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jkp3sf$gtu$1@newscl01ah.mathworks.com>...
> "Shie Chen" wrote in message <jkott5$c7$1@newscl01ah.mathworks.com>...
> > Hi,
> > I'm doing a project about cognitive radio, but I have difficulty in writing the matlab code for an equation. It's an integral of an exponential equation 1./(sqrt(2*pi).*sigma).*(exp(-(x-mu).^2./(sigma.^2))) from a certain value E to infinity, where sigma and mu are 1*3 matrix and x is the variable. Could anybody teach me how to write the matlab code?
> > If there is anything I can help, please let me know.
>
> In 1D use erf() and appropriate transformed variable in integral.
>
> Bruno

Thanks,that's very helpful!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us