Plotting a 2D matrix

4 visualizaciones (últimos 30 días)
John
John el 23 de Jun. de 2011
I have some data I would like to visualize, only I'm not sure which is the way to go about it. I want to take a 42x72 matrix called "data" of integers and plot:
f(i,j,data(i,j)), where i and j are index's of the data matrix. And data is the name of the matrix which holds the data. Or we can use a and b since this is matlab and we have problems with complex #.
I essentially want a 3D plot or a color plot which could help me visulize where the highest values are in the "data" matrix.
In addition, I have the curve fitting tool box. I wanted to know if some kind of function could be generated to describe the values in the matrix. So: f(i,j) = data(i,j). Can I find a function in mathmatical terms, rather than just having a big matrix, "data", that stores my points.
Thank you

Respuesta aceptada

Sean de Wolski
Sean de Wolski el 23 de Jun. de 2011
doc surf
doc mesh
doc plot3
to name a few visualization tools. You CAN fit a function to it, will it be a good fit? Not necessarily - that depends on your data/system.
  12 comentarios
John
John el 23 de Jun. de 2011
The data represents probablity on a 2D map. So if I could generate the probablity just based on an equation, it would save memory.
Sean de Wolski
Sean de Wolski el 24 de Jun. de 2011
< 1Kb! Is there any option of getting more memory? If you just need to be able to generate points in this _exact_ space you could use a higher order polynomial. But it would be unstable for ANY other application.
Overall, I'd recommend getting more memory...

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by