# 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.

173 questions
Filter by
Sorted by
Tagged with
112 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 ...
• 553
90 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. ...
• 33
95 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 ...
• 101
1 vote
43 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 ...
• 381
107 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 ...
• 381
1 vote
192 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/...
717 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 ...
• 295
1 vote
218 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, ...
• 129
867 views

103 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 ...
• 2,335
1 vote
74 views

### Create table A with entries of the form Ai_j

I would like to create an $m \times n$-table A with entries Ai_j, where $1 \leq i \leq m$ and $1 \leq j \leq n$. I have seen ...
305 views

### Matlab Code and Mathematica Code both identical with different results [closed]

I have spent so much time working around with this code to give the same identical answer as the code I have written before over Matlab. I am just trying to switch towards using Mathematica in my ...
• 77
581 views

### Different results using spline interpolation in Wolfram and MATLAB

I use the same data for interpolation in Mathematica and MATLAB, but the result is different. ...
• 63
120 views

### How to discritize a function domain (break xy-plane to a grid/mesh of squares with vertex values for evaluation)? [closed]

I wrote a code using MATLAB to discritize a function's 2D domain into squares/rectangles, whose vertex data (x,y) I can use to evaluate the function at. Then I sum these values over all vertices to ...
• 306
1 vote
237 views

### Mathematica to Matlab (not "so easy" code) [closed]

Based on a Wolfram Demonstration of the Ising ferromagnet using Monte-Carlo Metropolis, I modified it a bit to the anti-ferromagnet case and to get the plot of the order parameters as a function of ...
258 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: <...
• 359
975 views

### Moving B.C.s in heat diffusion model

I came across the paper Solidification dynamics of an impacted drop regarding a heat equations by Thiévenaz et.al and was interested in knowing how they obtained the graphs presented. From what I ...
• 409
150 views

### How can I convert my MATLAB code into WL code?

I am working in MATLAB and want to convert the following snippet into WL code to run on Mathematica. ...
• 101
65 views

### How to import a matrix of integers from MATLAB?

I am importing a matrix from MATLAB. However, there are some redundant items added in the imported matrix. For example, the imported matrix is a binary matrix. After import, it looks like this ...
• 565
2k views

### Row vectors and column vectors (Mathematica vs. MATLAB)

As far as I know, Mathematica does not distinguish between row vectors and column vectors: all vectors are seen as lists. I know ways to bypass this as suggested in Product between a column vector and ...
• 4,874