Can't find function mcx Matlab

208 views
Skip to first unread message

Maurice

unread,
Oct 24, 2021, 9:46:03 AM10/24/21
to mcx-users
Dear,

After downloading MCXStudio and running mcxlab in the MATLAB folder into MATLAB, I can't run any of the examples like demo_mcxlab_basic.m due to the error "unrecognized function or variable mcx.m". This function is indeed not in any of the folders. 

What should I do?

Kind regards,
Maurice

Qianqian Fang

unread,
Oct 24, 2021, 9:53:20 AM10/24/21
to mcx-...@googlegroups.com, Maurice
On 10/24/21 9:05 AM, Maurice wrote:
Dear,

After downloading MCXStudio and running mcxlab in the MATLAB folder into MATLAB, I can't run any of the examples like demo_mcxlab_basic.m due to the error "unrecognized function or variable mcx.m". This function is indeed not in any of the folders.


if you are using Windows, please use the all-in-one installer to install mcxstudio

http://mcx.space/nightly/win64/MCXStudio-nightlybuild-installer.exe


otherwise, you need to run the "mcxsuite_addpath.m" script found at the top level of the unzipped package.



What should I do?

Kind regards,
Maurice
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/3990b492-8c8d-498e-b0ba-187e2081dda0n%40googlegroups.com.

Enes Menteşoğlu

unread,
Jul 31, 2024, 9:13:08 AM7/31/24
to mcx-users
Hi,
Unrecognized function or variable 'mcx'.

Error in mcxlab (line 497)
    [varargout{1:max(1, nargout)}] = mcx(varargin{1});

Error in Kxxx (line 49)
[flux, detp, vol, seeds]=mcxlab(cfg);
 
im using m2 MacBook and have the issue. I run mxsuite_add.. and even added manually still same issue. Can you help me? Thank you
24 Ekim 2021 Pazar tarihinde saat 16:53:20 UTC+3 itibarıyla fan...@gmail.com şunları yazdı:

Qianqian Fang

unread,
Jul 31, 2024, 1:16:28 PM7/31/24
to mcx-...@googlegroups.com, Enes Menteşoğlu

hi Enes,

you can't run mcx/mcxlab on M2 mac, because MCX needs NVIDIA GPU which M2 mac does not have.

you can, however, run mcxcl/mcxlabcl on your M2 mac, you can see my reply to a similar question posted by Emily previously

https://groups.google.com/g/mcx-users/c/yeaV-1gwUNI/m/FgrohfUVAQAJ

Qianqian

Subham Mukherjee

unread,
Oct 24, 2025, 6:01:20 PM (13 days ago) Oct 24
to mcx-users
Dear Sir, I could not be able to locate the  "mcxsuite_addpath.m" script in the unzipped folder "mcxlab-win-x86_64-v2025". as i am very new to this platform, can you please help me regarding this.

Qianqian Fang

unread,
Oct 24, 2025, 6:14:09 PM (13 days ago) Oct 24
to mcx-...@googlegroups.com, Subham Mukherjee

mcxsuite_addpath.m is only included as part of the MCXStudio* packages. Because MCXStudio contains many parts (mcxlab/mmclab/redbird ...), so this script helps setting all paths.

for mcxlab, all you need to do is to add the path of the unzipped folder (where mcx.mex* file exist), and the matlab subfolder.

Reply all
Reply to author
Forward
0 new messages