Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
model.param.get does not return complex values
Posted 27 nov 2011, 05:43 GMT-5 Parameters, Variables, & Functions Version 4.2a 3 Replies
Please login with a confirmed email address before reporting spam
I set a parameter to a complex value by:
model.param.set('v1', 4.5+j*2)
However, when I try to access the parameter later by
model.param.get('v1')
All I get is
4.5
I am using comsol4.2a and matlab 2011a on a 64 bit linux machine.
Does the error occur when I am setting the parameter value or when I am accessing it.
In other words, is 'v1' correctly set to the complex value, and it is just the model.param.get that is not
working properly?
Or, is it model.param.set which is not setting 'v1' correctly?
I would appreciate any help.
Thank you,
Emi
model.param.set('v1', 4.5+j*2)
However, when I try to access the parameter later by
model.param.get('v1')
All I get is
4.5
I am using comsol4.2a and matlab 2011a on a 64 bit linux machine.
Does the error occur when I am setting the parameter value or when I am accessing it.
In other words, is 'v1' correctly set to the complex value, and it is just the model.param.get that is not
working properly?
Or, is it model.param.set which is not setting 'v1' correctly?
I would appreciate any help.
Thank you,
Emi
3 Replies Last Post 28 nov 2011, 01:15 GMT-5