フィルターのクリア

pMatlab displays: Undefined function or variable 'MatMPIdefs1'

1 回表示 (過去 30 日間)
Martin
Martin 2011 年 4 月 5 日
編集済み: bo zhang 2023 年 5 月 15 日
I have some serious problems with pMatlab. After installing pMatlab, running the pMandelbrot example already gives me a substantial improve in computation time (compute time is displayed in the command window), but the program never finishes. The additional command windows remain open and display the following error messages
Undefined function or variable 'MatMPIdefs1'
where the integer depends on the core I am working on. My guess is, that pMatlab has serious problems in doing the remapping (aggregation step). Does anyone kno a solution to this?
Best, Martin

回答 (3 件)

Kaustubha Govind
Kaustubha Govind 2011 年 4 月 5 日
Since it appears that pMatlab is a third party toolbox - I would recommend contacting the authors via the email address listed on their website, unless someone on this forum is able to answer your question.

Graham
Graham 2013 年 2 月 22 日
Are you using windows? I had a similar problem caused by not following the directive in the pMatlab "Installing and Running" instructions:
5. Start Matlab from the command line (starting Matlab from the icon may result in inconsistent behavior).
When you start matlab from the user icon, the command processes that result from eval(pRun) seem to start in your user startup directly rather than the current directory.
Running "matlab" from the command line fixed this for me.
  1 件のコメント
Ayush Porwal
Ayush Porwal 2019 年 10 月 24 日
Hi Graham
In my case, starting matlab from command prompt isn't solving the problem. Please explain your understanding in more detail.

サインインしてコメントする。


bo zhang
bo zhang 2023 年 5 月 15 日
編集済み: bo zhang 2023 年 5 月 15 日
Undefined function or variable 'MatMPIdefs1' means that the path of folder 'MatMPI' hasn't been added when pMatlab uses dos command to start MATLAB.
According to my experience, this problem usually happens in Windows.
The author has told us that you need to create a 'startup.m' file in the same path of your code file, and add.\MatMPI to the path. In the pMatlab folder, there already exsits a startup.m file, and you need to uncomment lines 38-40 to add.\MatMPI to the path.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by