DSPRelated.com
Forums

How to covert MATLAB inbuilt function into C code ?

Started by Senbaga Ganesh March 16, 2009
Hi Guys,
Am in need of a solution to convert some inbuilt MATLAB
functions into embedded C code. Even ordinary C code is enough. The
functions which i want are

- filter
- fir1
- conv

Plz help.... Thanks in advance
1. filter
If you just want the implementation of this function and not the exact
model of MATLAB counterpart, the routine is available in C - code on the
internet. Just google about it. Besides, if you want to make one on your
own, the structure is given in the Matlab help.

2. fir1
This is a design function and you can edit fir1.m to see whats happening
inside. You will have to write it down yourself.

3. conv.m
The command is more or less the same as that of filter.

In short, if you want to implement just the processing and not the exact
replicas of the commands, the solution is quite easy and you can write
it on your own.

Ubaid Abdullah
http://dspdotcomm.blogspot.com

--- In m..., Senbaga Ganesh wrote:
>
> Hi Guys,
> Am in need of a solution to convert some inbuilt MATLAB
> functions into embedded C code. Even ordinary C code is enough. The
> functions which i want are
>
> - filter
> - fir1
> - conv
>
> Plz help.... Thanks in advance
>