convolution of 2 sequestions

how to import input data (text) file? how to use that file in matlab's inbuilt function "conv()" so that convolution of 2 sequences will be possible?

Answers (1)

Wayne King
Wayne King on 25 Jul 2012
That depends on the structure of your text file. If it is a simple .txt file of numbers, you can just use load(), or dlmread().
If you have other information in the text file, textscan(), may be appropriate.
If you are using Windows and have Excel, importing the text file into Excel first, may help you.
I think you need to say more about what content is in your text file, other than the two sequences you would like to convolve.

Asked:

on 25 Jul 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!