Hello All!
I'm looking for a way that: How can I write a C++ code on the MATLAB editor (instead I will write the script in m-file editor).
Is there anyone here who knows how can I do this?
Thanks Morris.

 채택된 답변

Walter Roberson
Walter Roberson 2014년 3월 15일

1 개 추천

The editor doesn't care what you write in it. You might want to turn off syntax checking through.

추가 답변 (1개)

Morris
Morris 2014년 3월 15일
편집: Morris 2014년 3월 15일

0 개 추천

If I want compile the C++ code with associate by MATLAB script , if it's possible?

댓글 수: 1

Walter Roberson
Walter Roberson 2014년 3월 15일
You could consider calling "mex". Use the -c option if you want to compile an individual .cc or .C file to object code. mex normally creates what is really a DLL. If you want to build a complete .exe from the C++ you could system() the linking call after everything is compiled.
Or you could just system() the compilation call directly.

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

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

태그

질문:

2014년 3월 15일

댓글:

2014년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by