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.
Debugging MATLAB Function used by COMSOL
Posted 2019/01/03 16:34 GMT-5 4 Replies
Please login with a confirmed email address before reporting spam
Hi, I have a MATLAB function that uses "&" operators and, although it works fine when I test it in my MATLAB window, COMSOL cannot seem to handle it. I get this error, "Operands to the || and && operators must be convertible to logical scalar values."
I have already tried changing the "&" symbols in my function to "&&" symbols, but I still get the same error.
I use .mat files in my MATLAB programs which don't seem to want to be uploaded here, so I guess I can't post all of my files.
Thanks in advance. -Tim
Attachments: