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.

Plotting a variable

Please login with a confirmed email address before reporting spam

The error:Incorrect size of returned vector. 31 elements were expected, but the returned matrix was 1 x 1. When comsol calls an external matlab function, an error is reported. What I originally wanted to do was to draw a variable. This variable is time-varying and changes every other cycle. Specifically: set an initial frequency value, but the time reaches this frequency after the period corresponding to the time, change the frequency to the original value, and stop the simulation after knowing that the frequency is lower than a certain number. How to achieve it?


0 Replies Last Post 20 dic 2022, 11:30 GMT-5
COMSOL Moderator

Hello Guo Jiang

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.