이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
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
채택된 답변
Sean de Wolski
2011년 6월 23일
0 개 추천
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
John
2011년 6월 23일
thank you could you point out what document to look up for curve fitting?
Sean de Wolski
2011년 6월 23일
Open the curve fitting toolbox help and demos for how to use it. As for a GOOD fit - is there an analytical or empirical function that you data actually follows?
I would recommend reading John's reply nine here:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/294201
John
2011년 6월 23일
Thank you. And, the data was generated in an anaylitical fashion using descision statements. It does follow a trend. Is there anyway I could email you the data file??
Sean de Wolski
2011년 6월 23일
Yes, but I may not look at it until tomorrow seeing as how it's almost five - happy hour :)
type
sftool
at the command line then use your data and analytical function.
John
2011년 6월 23일
It is definintaly non-linear. When I said analytical I mean it more from the method in how the data was generated. It's not random, but there is no analytical function.
Sean de Wolski
2011년 6월 23일
Then why do you want to fit an analytical function to it? What would you gain from having an analytical function (such as one generated by the SFT or a least squares fit)?
John
2011년 6월 23일
I wanted to see if I could fit the data to a polynomial. 5th order which max for me is not big enough
John
2011년 6월 23일
Thanks for the help
Sean de Wolski
2011년 6월 23일
You might as well fit (42*72)th order polynomial to it so it runs through every point! They'll both be wrong and for any real purpose, useless.
Other than seeing if you could fit a polynomial to it, why do you want to? What is your end goal I guess?
John
2011년 6월 23일
I am working in a memory limited enviroment<1KB. So having a large matrix or array that stored data points was not practical. I wanted to know if it was possible to generate the data on demand from a mathmatical function. This way I wouldn't have to store ever piece of data in an array.
John
2011년 6월 23일
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
2011년 6월 24일
< 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...
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
