Apr 5, 2012 #1 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) !
how can I get data from a certain equation using Mathematica in order to plot them using MATLAB command (imagesc) !
Apr 5, 2012 #2 Hepth Science Advisor Gold Member Messages 458 Reaction score 40 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.
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.