Mathcad & Matlab

Can I call a Mathcad or Matlab routine from Xojo and return a value to Xojo?

I use Matlab at work but I have never tried anything like this. I know there is some way to compile Matlab code to dynamic libraries, so you could call that functionality from Xojo using declares.

I imagine you will need a license to the C compilation toolbox in Matlab, or whatever its name is. Check this:

There is also this (, but I don’t know its capabilities and limitations, just found it.