Questions tagged [matlab]
Questions related to interoperability between Mathematica and MATLAB, or implementation of MATLAB functionality in Mathematica. This tag is NOT for pure MATLAB question.
176 questions
2
votes
1
answer
253
views
Mathematica implementation of Mason's gain formula
Mason's gain formula (MGF) is a method for finding the transfer function of a linear signal-flow graph (SFG).
I'm trying to port the MATLAB code to Mathematica code, but the Mathematica code outputs ...
2
votes
0
answers
46
views
What is the best way to combine ExternalEvaluate with RemoteRunProcess?
session = StartExternalSession["Python"] starts a python session on the local machine.
...
1
vote
1
answer
187
views
Installing MATlink
Me and ChatGPT have tried unsuccesfully for three hours to install MATlink manually from http://matlink.org/#installation I was wondering if someone succeeded recently (since it seems this is not ...
2
votes
1
answer
248
views
How to export a variable in Mathematica to .mat format such that MATLAB loads the file, the data is imported to something not called Expression1
Hopefully this is a simple problem.
When I export, in mathematica, saving the variable:
linearArrayVariable
to a file on disk called
...
0
votes
1
answer
134
views
How can I transpose SCILAB/MATLAB code with for loop into Mathematica? [closed]
How can I transpose the following SCILAB/MATLAB code into MATHEMATICA?
I took a look at similar questions, but none of them seemed to provide a solution.
...
2
votes
1
answer
151
views
Adding Greek letters to ToMatlab
I want to add Greek letters to the ToMatlab package. The most recent publicly available version I found is here.
There is a section on symbols starting on line 242. I tried adding a line
...
1
vote
0
answers
70
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
...
4
votes
1
answer
169
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 ...
1
vote
0
answers
240
views
Bifurcation and stability analyses of delay differential equations
Are there any packages in Mathematica for bifurcation and stability analyses of delay differential equations? For Matlab, there is a nice tool like:
https://twr.cs.kuleuven.be/research/software/delay/...
6
votes
2
answers
826
views
Convert MATLAB code solving 1D wave equation via FFT using ode45 into Mathematica code
I don't quite understand the process of solving differential equations by MATLAB. It seems that it doesn't need the explicit function to specify the required solution, but only needs to input the ...
3
votes
1
answer
416
views
How to convert the Mathematica matrix to MATLAB format and using MATLAB to verify the solution?
I have got the solution of the matrix system and get the solution using LinearSolve, and now I want to use MATLAB to see whether it can generate the same solution, ...
6
votes
1
answer
2k
views
Code for quasi 1D nozzle flows
The quasi-one-dimensional model describing the flow of compressible gas in rocket nozzles is very common. The corresponding equations have a divergent non dimensional form
$ \frac{\partial \mathbf{U}}...
1
vote
0
answers
129
views
Matlab to Mathematica code to solve system of ODEs [closed]
I have the following system of second order non-homogeneous DEs:
\begin{align}
0 &= 2 x_t - J_{\pi_t}(x_t) \frac{\epsilon - 1}{\theta} (1 + \varphi) + \frac{\partial J_{x_t}(x_t)}{\partial x_t} \...
3
votes
2
answers
390
views
Givens rotation: What is the Mathematica equivalent to MATLAB's planerot function?
Matlab has a function called planerot which takes a two-component column vector $x$ as input and returns a $2 \times 2$ matrix $G$ and a two component column vector ...
4
votes
1
answer
310
views
How to export a matrix with complex entries having arbitrary precision from Mathematica to Matlab?
I am trying to export a large matrix with complex entires having arbitrary precision (~ roughly 200 digits after the decimal point) from Mathematica to Matlab.
I have used ...