Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Debugging MATLAB Function used by COMSOL

$
0
0

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


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>