Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

conversion of c programs into matlab file and vice versa

Status
Not open for further replies.

manojkrshukla

Junior Member level 1
Joined
Jun 6, 2006
Messages
16
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,504
Dear Memebers,
Pl. help me in converting the c programs in matlab programs and vice versa.
I will be grateful to you.
regards.
m. shukla
 

you can have a look on the 'mex' help files in matlab.....i believe there are software to convert as what you need.....try search it thru google......but....i strongly suggest you to convert it yourself......
 

cwj is right you need to use mex files:

Basically you can just copy and paste the actual functions in the mex code, but the difficult part is writing the 'gateway' function. Matlab provides a couple of examples of gateway functions in the "External References" part of the help section.
 

Do you mean an M-file or a Simulink model? if the 1st then you use the mex files as people said before me but if the second then you use the Real Time Workshop to create the C code, all what you should do is instead of running it in the normal mode, use the accelerate mode.
 

CAN YOU EXPLAIN WITH THE HELP OF EXAMPLE AND STEPS WRITTEN PROPERLY. IT WILL HELP MANY USERS.

REGARDS,
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top