Run code in matlab for mac

broken image
broken image
broken image

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. If you're using Windows you can find this in the same Start menu group that the main Comsol application is in.Ģ.

broken image

Use the 'Comsol with Matlab' application that came with Comsol when you installed it. The part you are missing is that you need to run some code to connect Comsol to Matlab.