Is it possible to execute .m file by MCR in Ubuntu

조회 수: 2 (최근 30일)
M Prabu
M Prabu 2013년 10월 10일
댓글: M Prabu 2013년 10월 10일
Hi, I have done some image processing in matlab on windows os. That code is executed successfully and gave expected output. But i have to execute it on Ubuntu os. I dont have matlab full software in ubuntu, instead of that i have MCR and it is installed, environment variables had been set as per installation guide. when compiling i got error.
matlab: No MATLAB executable for this machine architecture.
/usr/local/MATLAB/MATLAB_Compiler_Runtime/v717/bin/glnx86/MATLAB does not exist!
My ubuntu architecture is 32 bit. i have installed correctly. I am also given
sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6
for 32 bit installation. Anyway i cant execute my .m file. My doubt is, is it possible to execute .m file without having Matlab full software. With MCR can i execute .m file. Please suggest me to do this.
  댓글 수: 1
M Prabu
M Prabu 2013년 10월 10일
I am also tried to execute with wine. .m file deployed to .exe file. eventhough i am getting error from wine.

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

채택된 답변

Daniel Shub
Daniel Shub 2013년 10월 10일
No. You cannot create a Linux executable from a Windows machine. In order to create an executable you need a full installation of MATLAB and the compiler (as well as any toolboxes your function uses). Once an executable is created, you can then run it with the MCR on a machine without MATLAB.
  댓글 수: 1
M Prabu
M Prabu 2013년 10월 10일
I am getting this error while executing in ubuntu os with MCR
root@isro:/usr/local/Matlabfiles# ./hdf.m
./hdf.m: line 4: syntax error near unexpected token `('
./hdf.m: line 4: ` L_510 = hdfread('/usr/local/Matlabfiles/25sephdf/O2_01AUG2013_010_012_GAN_L1B_ST_S.hdf', '/Geophysical Data/L_510', 'Index', {[1 1],[1 1],[6120 1243]});'

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

추가 답변 (0개)

카테고리

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