| Author |
Message |
manojkrshukla
Joined: 06 Jun 2006 Posts: 46 Helped: 5
|
08 Jun 2006 8:09 conversion of c programs into matlab file and vice versa |
|
|
|
|
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
|
|
| Back to top |
|
 |
cwjcwjcwj
Joined: 08 Nov 2004 Posts: 207 Helped: 2
|
08 Jun 2006 21:43 Re: conversion of c programs into matlab file and vice versa |
|
|
|
|
| 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......
|
|
| Back to top |
|
 |
rx-7man5
Joined: 09 Jun 2006 Posts: 5
|
09 Jun 2006 1:55 conversion of c programs into matlab file and vice versa |
|
|
|
|
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.
|
|
| Back to top |
|
 |
moustafahussein
Joined: 05 May 2006 Posts: 15 Helped: 1 Location: Alexandria, Egypt
|
09 Jun 2006 10:40 Re: conversion of c programs into matlab file and vice versa |
|
|
|
|
| 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.
|
|
| Back to top |
|
 |
manojkrshukla
Joined: 06 Jun 2006 Posts: 46 Helped: 5
|
04 Jul 2006 9:27 Re: conversion of c programs into matlab file and vice versa |
|
|
|
|
CAN YOU EXPLAIN WITH THE HELP OF EXAMPLE AND STEPS WRITTEN PROPERLY. IT WILL HELP MANY USERS.
REGARDS,
|
|
| Back to top |
|
 |