Can C program be converted to Matlab ?

 채택된 답변

manoj saini
manoj saini 2013년 2월 23일

0 개 추천

ya using MEX file.....we can convert it into MATLAB

댓글 수: 1

Walter Roberson
Walter Roberson 2013년 2월 23일
That does not convert it to MATLAB, but it does make it possible for MATLAB to make use of the C code.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2013년 2월 24일

0 개 추천

Yes, both languages have the same power.
A manual conversion can be a big piece of work or very easy. Do you mean an automatic conversion?

댓글 수: 3

Walter Roberson
Walter Roberson 2013년 2월 24일
There are some corners of C that have no MATLAB equivalent.
I am thinking in particular that C defines the behavior of seeking on files to include flushing the output, but MATLAB does not define that facility anywhere.
Pooja
Pooja 2013년 2월 24일
C programs logic could be used for matlab programs right?
Walter Roberson
Walter Roberson 2013년 2월 24일
Translating pointers would be tricky, but basic concepts such as "for" loops are the same in most programing languages.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

질문:

2013년 2월 23일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by