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:
help in Plotting in convolution probelm

Subject: help in Plotting in convolution probelm

From: kk KKsingh

Date: 24 Feb, 2010 04:42:05

Message: 1 of 2

Hi all!

My experience with matlab is great ! I am learning new things every day thanks to people in Matlab central for helping me ..even for trivial things like DFT..

This time I need help in plotting
suppose
xd=[ -0.0625 -0.0469 -0.0313 -0.0156 0 0.0156 0.0313 0.0469 0.0625 0.0781]
b= 1.5275e+003
g(x)=exp(-bx^2)
which is
gaussx=.0156*exp(-b*xd.^2)

And
N=201
fo = 4; %frequency of the sine wave
Ts = 1/50; %sampling time interval
t = 0:Ts:Ts*(N-1); %sampling period
y = 2*sin(2*pi*fo*t);

R=y(1)*gaussx(:)'
I am convoving 10 point gaussiian with the First point of my signal then suppose if i have another sample i will be calculating different x for it. in the end i will be having 10 by 100 Matrix (Gaussian Matrix) which i will convolve with 100 samples which means convolution with 10 point for each samples


 BUT FOR now my question is

What is the best way to plot the the convolution! so that i can show people methodology of my algorithm. I mean i want to show any one point of my signal convolving with 10 point Gaussian. with good representation .......so that i can explain the things in detail after that





Thanks

kk

Subject: help in Plotting in convolution probelm

From: kk KKsingh

Date: 24 Feb, 2010 08:49:05

Message: 2 of 2


It can be said as gaussian gridding method as gaussian is used to put the samples on a grid


"kk KKsingh" <akikumar1983@gmail.com> wrote in message <hm2amt$89b$1@fred.mathworks.com>...
> Hi all!
>
> My experience with matlab is great ! I am learning new things every day thanks to people in Matlab central for helping me ..even for trivial things like DFT..
>
> This time I need help in plotting
> suppose
> xd=[ -0.0625 -0.0469 -0.0313 -0.0156 0 0.0156 0.0313 0.0469 0.0625 0.0781]
> b= 1.5275e+003
> g(x)=exp(-bx^2)
> which is
> gaussx=.0156*exp(-b*xd.^2)
>
> And
> N=201
> fo = 4; %frequency of the sine wave
> Ts = 1/50; %sampling time interval
> t = 0:Ts:Ts*(N-1); %sampling period
> y = 2*sin(2*pi*fo*t);
>
> R=y(1)*gaussx(:)'
> I am convoving 10 point gaussiian with the First point of my signal then suppose if i have another sample i will be calculating different x for it. in the end i will be having 10 by 100 Matrix (Gaussian Matrix) which i will convolve with 100 samples which means convolution with 10 point for each samples
>
>
> BUT FOR now my question is
>
> What is the best way to plot the the convolution! so that i can show people methodology of my algorithm. I mean i want to show any one point of my signal convolving with 10 point Gaussian. with good representation .......so that i can explain the things in detail after that
>
>
>
>
>
> Thanks
>
> kk

Tags for this Thread

No tags are associated with 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