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.
problem about comsol can't plot an external Matlab function that Nested a equations
Posted 12 mai 2016, 07:31 UTC−4 Interfacing 0 Replies
Please login with a confirmed email address before reporting spam
I have a problem about using an external matlab function that it nested another matlab function but comsol can't plot it.
this is my function:
>> function out = rho_x(T)
out=XSteam('rhoL_T',T);
%%XSteam is another M-File that contain a series of Material properties
This function can work in matlab,but not in comsol .
I have created another example to make out what is going on . That is :
>> function out = Cp_x(T)
out=CpL_x(T);
here is a M-File(CpL_x)
>>function out = CpL_x(T)
out=2+T.^2;
and is work ,that confused me a lot . Maybe something wrong about "XSteam('rhoL_T',T)", the 'rhoL_T' is just an char ,no an
numerical value.
Anyone with experience successfully doing this?
Thanks!
babyling
Attachments:
Hello babyling
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.