現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
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 日
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!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
