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.
Setting the unit of the parameter in Matlab LiveLink Comsol 5.4
Posted 30.11.2020, 07:41 GMT-5 General, LiveLink for MATLAB, Parameters, Variables, & Functions Version 5.4 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I need to define the unit in Matlab. Therefore, I used the command obtained from LiveLink User's Manual 5.4 at page 150: something.set(property, [num2str(<value>)'[unit]'])
I applied to my code as:
x1=0.1;
model.set('a', [num2str(x1)'[mm]'])
(I wanted to assign 'a' value as 0.1[mm] )
But, I had an error: Unbalanced or unexpected parenthesis or bracket. When I add a comma after the value paranthesis, again the same error occurs.
Can you please help me abaout this issue? Thank you, Mervenaz