
- Matlab 2014a for mac error starting desktop code#
- Matlab 2014a for mac error starting desktop windows#
When I later run this m-file in MATLAB I get the following error message (after a while thinking) Ĭom.: InvalidĪt .Property.c(Unknown Source)Īt .ac.set(Unknown Source)Īt .t(Unknown Source)Īt .PropFeatureImpl.a(Unknown Source)Īt .PropFeatureImpl$q.a(Unknown Source)Īt .PropFeatureImpl$q.execute(Unknown Source)Īt .ClientManagerImpl$d.call(Unknown Source)Īt $Sync.innerRun(FutureTask.java:303)Īt .run(FutureTask.java:138) I am still trying to open a m-file saved in COMSOL in MATLAB. Model.geom('geom1').feature.create('r2', 'Rectangle')

Model.geom('geom1').feature.create('r1', 'Rectangle') Model.study('std1').feature.create('mode', 'ModeAnalysis') ('emw', 'ElectromagneticWaves', 'geom1') Model.modelPath('/Users/sli027/Desktop/The PhD Project/PHD - SIMULATIONS/PhD Simulation 1 - Waveguide Cryptophane/') % Simulation_Waveguide_Crytophane_2D_SV2_Sweep HR_ET1e-7.m Opening the m-file and then push the run button. Simulation_Waveguide_Crytophane_2D_SV2_Sweep HR_ET1e-7.mĢ.

Can you attach the m-file, or type in the first five lines or so?ġ. How are you running/calling the m-file?ģ. It sounds like you're trying to run the m-file as a function instead of a script. On a Mac, you should see the "Comsol with Matlab" application in the /Applications/Comsol folder, and if you need to run the server manually, I think it's in /Applications/Comsol/Comsol.app/Contents/bin from memory. See how you get on, and if any of this doesn't work, let me know some more detail and I'll try and help! This guide lists all the commands you can use in Matlab, and you should be able to find the results you want to access listed there. At this point I need to refer you to the Comsol API Guide, which you find from Help > Documentation within Comsol. Then you want to get some results out of it. Once you have connected to Comsol, you should be able to run the m-file you saved from Comsol. I don't think it matters what you use here, just use your normal username and password. You may find that the first time you start the server, it asks for a username and password. You can start a Comsol server manually (from the Comsol Start menu group or installation folder) and then, in Matlab, run the command "mphstart " to connect to Comsol.
Matlab 2014a for mac error starting desktop windows#
If you're using Windows you can find this in the same Start menu group that the main Comsol application is in.Ģ.

Use the "Comsol with Matlab" application that came with Comsol when you installed it.
Matlab 2014a for mac error starting desktop code#
The part you are missing is that you need to run some code to connect Comsol to Matlab.
