Getting data from an equation using mathematica

  • Context: Mathematica 
  • Thread starter Thread starter Lamanova
  • Start date Start date
  • Tags Tags
    Data Mathematica
Lamanova
Messages
1
Reaction score
0
how can I get data from a certain equation using Mathematica in order to plot them using MATLAB command (imagesc) !
 
Physics news on Phys.org
Take your function and create a table over the range of variables you want.

IN MATHEMATICA
F[x_,y_] = Sin[x 5] Sin[y 5];
data = Table[F[x,y],{x,0,1,0.1},{y,0,1,0.1}];
ListPlot3D[data]

Then export that data

Export["c://data.MAT", data];

This is a Matlab matrix filetype that you can then import into matlab.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K