Makefile a matlab .m file

조회 수: 6 (최근 30일)
Virtualkeeda
Virtualkeeda 2018년 8월 17일
댓글: Virtualkeeda 2018년 8월 17일
I have more than 10 MATLAB files. There is call to each file from a master file. I want to run this program on a high performance computing cluster. This cluster have gcc and openMPI compiler available. Should I have to create a makefile? Please tell How from scratch? I am new to this topic.
or Should I have to convert my .m files to c/c++? there are more than 1000 lines of codes.
  댓글 수: 2
Pieter Hamming
Pieter Hamming 2018년 8월 17일
Does the computing cluster have a MATLAB instance? If so, you can give a .m file (or a set of them).
Virtualkeeda
Virtualkeeda 2018년 8월 17일
No it does not. Thats the problem. Otherwise it would have been simple compilation.

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

답변 (1개)

Ryan Livingston
Ryan Livingston 2018년 8월 17일
One option is to deploy your code using either MATLAB Compiler or MATLAB Coder. There's an overview of those two processes here:
Both of those approaches allow the execution of MATLAB code without MATLAB being installed.
  댓글 수: 1
Virtualkeeda
Virtualkeeda 2018년 8월 17일
I am actually using matlab coder. But I am facing too much of restrictions while converting to C,especially in Structs.
I was just wondering it would have been easy if matlab compilers were installed on the hpc clusters. Probably not MATLAB (licensed) but Octave (may be).
Well, thanks for the answer Ryan. I guess converting to c is the ultimate solution.

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

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by