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

Run a MATLAB function in COMSOL

$
0
0
Dear All,

I want to use a MATLAB function in COMSOL 4.4, my function is a simple example like:

function out=myfunc(x)
out=x;

However, when I define a MATLAB fuction in COMSOL with name 'myfunc' and argument 'x' and I try to test the function by giving plot parameters from e.g. 1 to 100 , I get the following error:

Index exceeds matrix dimensions
- Function: myfunc
..

Can anybody help me to solve this problem?
Bests,

Viewing all articles
Browse latest Browse all 428

Trending Articles



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