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.

Problems about connection between the Ver3.5 and Matlab

Please login with a confirmed email address before reporting spam

Hi, I am using Matlab 7.4 to connect with Ver3.5.My matlab can connect Comsol3.5a, i.e. when I click "Comsol3.5a with MATLAB", both softwares can be opened . But, here are some problems that confuse me?

1. I bulid a model and it runs without problem. I saved it "1.mph" comsol file as "1.m". But I found a file "1.mphm" was saved at the same time. So, what's it? I tried same action on some Model Library files, seems for some models there is a also *.mphm file, but some models there is only one *.m file generated.

2. Got a correct example, for this one, I found except for *.m file, it has a *.asv file with the same file name. I opened this m file in matlab (already connect with comsol), and I click F5, it works well, i.e., I can see a comsol solve window coming out. But when I click my own m file, there is response what I got in matlab is "

ans =
1
>> "

I guess there must be something related "*.asv" file. So, how can I get this file when I save my own m file?

Hope a expert in the connection between Matlab and Comsol would give a detailed explanation.

Thanks in advance.

0 Replies Last Post 5 ago 2010, 04:15 GMT-4
COMSOL Moderator

Hello Zhe Wang

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.