Thread Subject: Simulink - General Questions

Subject: Simulink - General Questions

From: amit liron

Date: 6 Jan, 2012 17:30:09

Message: 1 of 4

Hi

I'm new with MATLAB and with SIMULINK.

1. I saw a DSP toolbar which has the G 711 coder.
    I didn't saw other coders (G 729 for example), are there more coders ?
    if not, how can I implement the G729 coder ?

2. Can I convert simulink model into C++ code ?
   (if the answer is yes, How can I do it ) ?

3. Is there a way to model AM/FM modulation with simulink ?

Thank's

Amit
    

Subject: Simulink - General Questions

From: Phil Goddard

Date: 6 Jan, 2012 18:27:07

Message: 2 of 4


> 1. I saw a DSP toolbar which has the G 711 coder.
> I didn't saw other coders (G 729 for example), are there more coders ?
> if not, how can I implement the G729 coder ?

Presumably you mean the G711 Codec rather than coder.
If so, there's a block for it in the DSP System Toolbox.

There is no block for G729 (as of R2011b).
To write your own you'd need to do some pretty advanced stuff with writing your own fixed-point S-Function, and most likely a tlc file too (for code generation).

> 2. Can I convert simulink model into C++ code ?
> (if the answer is yes, How can I do it ) ?

This is achieved using the Simulink Coder, although you will most likely also need the Simulink Embedded Coder.

> 3. Is there a way to model AM/FM modulation with simulink ?

You can implement your own algorithms or use the blocks in the DSP System Toolbox.

You should look at the doc for all of the above products:
http://www.mathworks.com/help/?s_cid=global_nav

Phil.

Subject: Simulink - General Questions

From: amit liron

Date: 6 Jan, 2012 18:49:07

Message: 3 of 4

"Phil Goddard" <phil@modeling-simulation-visualization.com> wrote in message <je7edr$pan$1@newscl01ah.mathworks.com>...
>
> > 1. I saw a DSP toolbar which has the G 711 coder.
> > I didn't saw other coders (G 729 for example), are there more coders ?
> > if not, how can I implement the G729 coder ?
>
> Presumably you mean the G711 Codec rather than coder.
> If so, there's a block for it in the DSP System Toolbox.
>
> There is no block for G729 (as of R2011b).
> To write your own you'd need to do some pretty advanced stuff with writing your own fixed-point S-Function, and most likely a tlc file too (for code generation).
>
> > 2. Can I convert simulink model into C++ code ?
> > (if the answer is yes, How can I do it ) ?
>
> This is achieved using the Simulink Coder, although you will most likely also need the Simulink Embedded Coder.
>
> > 3. Is there a way to model AM/FM modulation with simulink ?
>
> You can implement your own algorithms or use the blocks in the DSP System Toolbox.
>
> You should look at the doc for all of the above products:
> http://www.mathworks.com/help/?s_cid=global_nav
>
> Phil.



Thank's for your answer.
1. from your answer I understand that there is no G729 implementation (simulink impl) in matlab (like g711) ?

2. Can you give me a good link tutorial for how to use the coder (simulink coder) ?

3. Is there a different between simulink coder and matlab coder ?

Thanks again :-)

Subject: Simulink - General Questions

From: Phil Goddard

Date: 6 Jan, 2012 21:38:08

Message: 4 of 4


> 1. from your answer I understand that there is no G729 implementation (simulink impl) in matlab (like g711) ?

I believe not.

> 2. Can you give me a good link tutorial for how to use the coder (simulink coder) ?
>

The best place to start is the Getting Started section of the doc, then expand from there,
http://www.mathworks.com/help/toolbox/rtw/

> 3. Is there a different between simulink coder and matlab coder ?

Simulink Coder generates code from a Simulink model while MATLAB Coder generates code from MATLAB m-code.

Phil.

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 at files@mathworks.com