Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Can't execute mphgeom or mphmesh in Matlab
Posted 1 nov 2011, 12:11 GMT-4 Interfacing, LiveLink for MATLAB 0 Replies
Please login with a confirmed email address before reporting spam
I'm working through the example on pp. 26-28 of the LiveLink for Matlab User's guide. The simulation runs just fine, and the results can be plotted using mphplot. However, I get these Matlab errors when I try to view the geometry or mesh using mphgeom or mphmesh:
For mphgeom:
***
Subscript indices must either be real positive integers or logicals.
Error in ==> C:\COMSOL42\mli\mphpatch.p>mphpatch at 144
Error in ==> C:\COMSOL42\mli\mphgeom.p>mphgeom at 75
***
For mphmesh:
***
Subscript indices must either be real positive integers or logicals.
Error in ==> C:\COMSOL42\mli\mphmesh.p>mphmesh at 122
***
I'm quite proficient with Matlab, but as these are p-files, I can't see where the problem lies. I'm running Matlab 2008a. Will these errors disappear if I upgrade?
Cheers,
Brian
Hello Brian West
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.