Plotting a 2D matrix

4 Ansichten (letzte 30 Tage)
John
John am 23 Jun. 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

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 23 Jun. 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 Kommentare
John
John am 23 Jun. 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 am 24 Jun. 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...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by