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.

Useful links:

171 questions
36
votes
1 answer

What is the difference between Mathematica and Matlab?

I am totally a beginner to Wolfram products and I'm searching for a software to solve my math problems with, like computing this integral using $\LaTeX$ in Wolfram|Alpha. I'm searching for a windows-based software rather than a website. A software…
Sepideh Abadpour
  • 967
  • 1
  • 9
  • 18
7
votes
1 answer

Mathematica-To-MATLAB Dictionary!

Is there a dictionary to translate Mathematica functions and commands to MATLAB?
Behzad
  • 575
  • 2
  • 11
6
votes
4 answers

Automatically growing lists as in MATLAB?

Is there a way to add elements to a list at positions outside the current list's length? Something equivalent to the following MATLAB code snippet: x = [1,2,3]; x(5) = 5 which returns: x = 1 2 3 0 5
Wolfy
  • 369
  • 2
  • 7
4
votes
0 answers

Matlab to Mathematica conversion

Is there a list of corresponding commands between Mathematica and Matlab, including Solve, NSolve, DSolve, NDSolve and Plot in particular? Edit May I seek your indulgence as there is a possibility of 'Mathematicaizing' the following surfaces in…
Narasimham
  • 3,160
  • 13
  • 26
2
votes
2 answers

Mathematica permutes indices when reading Matlab files

I wrote the following Matlab script: A=reshape(1:(3*4*5),[3,4,5]); size(A) save('A.mat','A'); B=reshape(1:(7*8),[7,8]); size(B) save('B.mat','B'); C=reshape(1:(2*3*4*5),[2,3,4,5]); size(C) save('C.mat','C'); and it ouput ans = 3 4 …
Dims
  • 735
  • 3
  • 12
1
vote
1 answer

Transformation Matlab assignments to Mathematica expressions

From a simulation software, I obtain in a matlab file my algebro-differential equations in the following way : C_p_e = C_state/C_c; C_p_f = I_state/I_i; R_p_e = R_r*C_p_f; I_p_e = (Se_p_e-R_p_e)-C_p_e; For theses expressions, I would like to do two…
Bendesarts
  • 1,099
  • 5
  • 12
1
vote
0 answers

Mathematica to Matlab (not "so easy" code)

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 the Temperature. The problem is that for sizes of…
Daniel Castro
  • 631
  • 3
  • 11
1
vote
1 answer

What's the best reference for learning how to best use both Mathematica and MATLAB?

I'm pretty good at using MATLAB for a lot of different things, and less familiar with Mathematica, but I just got accepted to a graduate school in mathematics where (from what I can tell so far) some people use one while some use the other. My plan…
DavidM
  • 11
  • 2
0
votes
1 answer

Writing equations from Mathematica in Matlab

I would like to use mathematical equations directly in Matlab. I found one thread describing about a built in Matlab file i.e. ToMatlab.m. I am able to download this file, however, I could n't able to set the path to make it work. Regards, Kiran
Kiran
  • 3
  • 1
0
votes
0 answers

How to call a mathematica script from a Matlab script?

I need to call a Mathematica script from within a Matlab script and I wonder what is the best way to do so. I've heard about the Mathlink, but no idea how straight forward it is to work with it. I'd be so grateful for any guide and…
Marilla
  • 165
  • 7