Thread Subject:
Avoiding loops when using "conv" command

Subject: Avoiding loops when using "conv" command

From: Elnaz

Date: 11 Aug, 2012 01:57:07

Message: 1 of 2

Hi all,

I want to use "conv" function to convolve each separate row of a matrix with a pulse shape. Unlike many other commands which treat each row/column of a matrix independantly, "conv" only accepts vectors as the input arguments. Therefore, my question is how to implement this without using loops to avoid performance lost?

Thanks,
Elnaz

Subject: Avoiding loops when using "conv" command

From: Bruno Luong

Date: 11 Aug, 2012 03:54:08

Message: 2 of 2

"Elnaz " <ebsadeghian@gmail.com> wrote in message <k04e5j$noh$1@newscl01ah.mathworks.com>...
> Hi all,
>
> I want to use "conv" function to convolve each separate row of a matrix with a pulse shape. Unlike many other commands which treat each row/column of a matrix independantly, "conv" only accepts vectors as the input arguments. Therefore, my question is how to implement this without using loops to avoid performance lost?
 
Use conv2 with matrix and pulse.

Bruno

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us