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.

Error with Matlab function ....

Please login with a confirmed email address before reporting spam

Hello all,

I am calling a function "myfunction" from matlab into comsol desktop. While writing "myfunction" in the function section, arguments in the argument section and specifying the arguments limits i receive the error message "error using myfunction, too many output argumnets" when i click to plot.

Could anyone help what is wrong...


Regards.

1 Reply Last Post 2017年8月22日 GMT-4 06:42
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 2017年8月22日 GMT-4 06:42
Hi

The error message comes from Matlab. Most likely your function (or a function that your function calls) doesn't return any arguments. Can you share your M-file?

--
Lars Gregersen
Comsol Denmark
Hi The error message comes from Matlab. Most likely your function (or a function that your function calls) doesn't return any arguments. Can you share your M-file? -- Lars Gregersen Comsol Denmark

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.