Questions tagged [matlink]

Use this tag for questions about the MATLink package, an interface for calling MATLAB from Mathematica. Not to be confused with MathLink!

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Which function should I use to close MATLink, DisconnectEngine or CloseMATLAB?

I'm using the MATLink package to call Matlab inside Mathematica. However, I want to know, if I want to close the link between Matlab and Mathematica, which function should I use? The ...
narip's user avatar
  • 381
1 vote
0 answers
39 views

Why my MATLink must execute the command `OpenMATLAB[]` twice to realize once normal `OpenMATLAB[]` command?

Problem description To use Matlab code in Mathematica I have tried to use the package MATLink. However, everytime I run the code below ...
narip's user avatar
  • 381
4 votes
1 answer
95 views

How to use a personal function in Matlab within Mathematica utilizing Matlink?

Problem description I've written a function in Matlab as follows: function z = testfuncadd(x,y) z = x + y; end I want to use this function within Mathematica ...
narip's user avatar
  • 381
0 votes
0 answers
91 views

An Error in `MATLink`

I downloaded MATLink to the directory generated by the command: (Matlab 2022b and Mathematica 13.1 on windows 10) ...
RF_1's user avatar
  • 672
0 votes
1 answer
163 views

Cannot open MATLAB from MATHEMATICA

I am using MATLAB R18 and MATHEMATICA 12. I downloaded MATlink to the directory generated by the command: ...
Md Salem's user avatar
4 votes
1 answer
114 views

MATLink: MEngine compilation error

Following the instructions in the MATLink website I am posting my issue when compiling MEngine on a Linux machine. I have checked that csh, ...
Alex's user avatar
  • 351
2 votes
0 answers
37 views

What is the proper way to cite MATLink in a paper?

I would like to propery cite MATLink in a paper. What is the recommended way of doing so? Thank you.
Cristian Em.'s user avatar
1 vote
1 answer
96 views

MATLink - error mengine "entry points not found"

I've successfully installed MATLink and used it in the past, but for some reason a couple of days ago it stopped working. It's maybe due to a Windows update? The error thrown is the following: This ...
Cristian Em.'s user avatar
0 votes
0 answers
103 views

Problem with MATLink use with Mathematica

After installing MAThLink I started its use in Mathematica: Needs["MATLink`"] OpenMATLAB[] I got the following output: ...
adam's user avatar
  • 1
0 votes
0 answers
98 views

Is it possible to implement this Matlab code for the normal form of a bipartite operator in Mathematica?

I am interested in converting the $16 \times 16$ ("density") matrix ...
Paul B. Slater's user avatar
6 votes
1 answer
213 views

MATLink bug when compiling mengine

Per the instructions here I should post a question on this forum with my bug. Essentially I have an error when compiling mengine. I'm trying to run a mathematica notebook on a linux server which needs ...
Cris's user avatar
  • 63
0 votes
1 answer
78 views

no succession to transfer data to MATLAB using matlink

I tried to work with MATLink. I have MATLAB R2014b on Win10, and Mathematica 12.0. I followed all the instructions from the MATLink website, but I did not get any outputs / notifications / something ...
GM_jnj's user avatar
  • 131
2 votes
1 answer
253 views

Problem in setting up MATlink

I am trying to set up a MATlink using the instructions given here. I get an error while running the following commands Needs["MATLink`"] OpenMATLAB[] Error: <...
Natasha's user avatar
  • 359
2 votes
0 answers
72 views

Matlink reconnections after timeout requiring OpenMATLAB twice

My connection from Mathematica to MATLAB using Mathlink seems to timeout after some time of inactivity. In order to reconnect I have to issue these commands: ...
Gustavo Delfino's user avatar
1 vote
0 answers
128 views

OpenMATLAB[] hangs

I just migrated my Mac from one machine to a new one and it seems like MATLink is broken now. When I call OpenMATLAB[] in Mathematica the command hangs forever. I ...
MaxJ's user avatar
  • 1,535
2 votes
1 answer
75 views

Which folder should I store the .m file in order to run it using MEvaluate[MScript["scriptname"]]?

I have installed MATLink and it works fine. Which folder should I store the 'scriptname.m' file, in order to run it using MEvaluate[MScript["scriptname"]]?
Dileep's user avatar
  • 21
2 votes
0 answers
130 views

How to call a Matlab user-created function in a .m file from Mathematica?

I have a file called gensys.m where it's defined a function gensys, which I would like to call in the mathematica environment and work with it. I've tried to ...
An old man in the sea.'s user avatar
1 vote
0 answers
100 views

Parallel evaluation of MATLINK

I have to use MATLINK to connect to MATLAB to run some programs. Variables can be get using MGet and assigned to a variable using ...
no-one's user avatar
  • 1,243
1 vote
0 answers
51 views

MGet["var"] returns $failed [duplicate]

I have just completed setup of MATLink for Windows to use with Mathematica 11.1 Student Edition with MATLAB R2017b (not student edition). I have confirmed both are 64 bit mode. I have followed the ...
Tyler Morrison's user avatar
3 votes
0 answers
235 views

"MATLink has lost connection to the MATLAB engine"

I started using MATLink and find it extremely useful (Windows 7, MATLAB R2016a). I now run Simulink models from Mathematica. I use Mathematica's Table to vary ...
Gustavo Delfino's user avatar
1 vote
1 answer
420 views

Error compiling MATLink on Linux: /bin/ld: cannot find -luuid

Specifically how do you get a successful compilation of mengine? I tried the following: sudo make -f Makefile.lin64 and got the following output: ...
user43188's user avatar
7 votes
1 answer
537 views

Installing MATLink without administrator privileges

This web page says that MATLink requires admin rights. First two steps to link Mathematica and MATLAB are: Add MATLAB's bin\win64 directory (bin\win32 for 32-bit versions) to the operating system's ...
stinglikeabeer's user avatar
8 votes
1 answer
963 views

Using the variable in the MATLAB workspace using MATLink or any other packages

I have a program in MATLAB and after I run the program, I get some results in MATLAB's workspace. Now, I need to use these results in Mathematica. What I currently do is that I save the workspace as a ...
secluded's user avatar
  • 135
4 votes
1 answer
955 views

ContourPlot3D using a Matlab function through MATLink

I have a Matlab function which accepts a 3 dimensional vector and returns a single number. I want to use this through MATLink to make a 3d plot. A unit sphere: ...
asdfa's user avatar
  • 43
1 vote
0 answers
68 views

How can I convert a matrix into matlab form string? [duplicate]

How can I convert a matrix into matlab form? ...
user92733's user avatar
3 votes
1 answer
962 views

Import symbolic variables from Matlab with MATLink

I'm trying to manipulate with Mathematica symbolic expression created in Matlab. I'm using the MATLink package, and I've succedeed in importing numerical variables, but not symbolic ones : ...
user10179's user avatar