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

How to transfer desired x,y,z coordinates to MATLAB function?

$
0
0

Hello, I am working on a MATLAB function to calculate my pressure for Comsol. Now my function is working. How can I tell Comsol that i want the x,y,z position? So: In the Global Definitions now I do have a Matlab function called MATLAB1. In this function I have defined my MATLAB function like this:

function name: pressure

Arguments: x,y,z

I tried to call the function in the components via: pressure(x,y,z), but I keep getting the error: unexpected unit of Input. Do I need to declare my Matlab function otherwise? And: How do I tell Comsol that I want the x,y,z coordinates there? Any suggestions?

Kind regards,


Viewing all articles
Browse latest Browse all 428

Trending Articles



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