필터 지우기
필터 지우기

To run 'mexw32' from a script.

조회 수: 6 (최근 30일)
Amit Kalhapure
Amit Kalhapure 2012년 9월 21일
Hi, I want to run '*.mexw32' file from a matlab script(*.m). What is the command to do it?

채택된 답변

Wayne King
Wayne King 2012년 9월 21일
편집: Wayne King 2012년 9월 21일
Hopefully you're on the correct machine for the mex file, but you just call the function without the mexw32 extension.
out = functioname(a,b);
You have to make sure the mex file is on the MATLAB path. Use addpath() or pathtool to add the folder with the mex file
For example, if you have the Signal Processing Toolbox, levinson() is a mex file. Enter:
>>which levinson
but to call it in a script or from the command line, you just use it like a MATLAB function.
  댓글 수: 2
Andreas Goser
Andreas Goser 2012년 9월 21일
Addendum: With "correct machine" Wayne means MEXW32 is for Windows 32 Bit architectures only. See MEXEXT for other extensions.
Amit Kalhapure
Amit Kalhapure 2012년 9월 21일
Thanks for answering. You are right, function should be called without extension. Now the code is working properly. Thanks again.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by