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
Posted Dec 20, 2022, 11:30 a.m. EST LiveLink for MATLAB Version 5.6 0 Replies
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?
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.