Not Yet Answered # Translating from Matlab to C

BountyX 7 b4codes Dave Sinkula 2,398 Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

0

Hey there,

I have a large program in Matlab that I have to translate into C. Is there any function or program that can do that automatically?

Thanks,

Patrick

well the standard C math library has all the simple standards, other than that you need to re-implement your own methods for the mathematics preformed in matlab...I warn you, matlab has its own kernal for interpreting equations and algorithms, this would be extremely hard to implement in C, im sure there are libraries out there to make it easier, but other than that its up to you.

Maybe you can find some way to use the already developed kernal to your own advantage in your program (like creating a program that will make scripts specifically for matlab then feeding the scipt's code into the kernal, unless Matlab already supports some form of scripting).

0

Well It depends on what version of matlab you have. If you have a matlab version prior to R13 than you can use the matlab compiler to convert matlab codes to C, but due to its limited sucess mathworks has withdrawn this facility in its newer versions (to best of my knowledge). You may like to visit kluid (http://www.kluid.com ) , its a well known website for matlab help, thought it seems they are "restucturing" it and will be back on line on 30 May, 2006.

b4 : ]

Hey there,

I have a large program in Matlab that I have to translate into C. Is there any function or program that can do that automatically?

Thanks,

Patrick

0

If there have been no responses for say, a week or so, consider the thread dead and do not resurrect it.

If you must post, then link to the thread in a new thread of your own.

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.

This is the result of previous question answered :

code for the listbox - datagridview interaction

At the top of the code ...

the function that I created to find the ...