3D Rose Plot?

Hi Everyone
Does anyone know of any way of doing a 3D Rose Plot in Matlab? I have data with both azimuth and elevation and would like to plot a "spherical histogram".
Thanks
Amir

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2011 年 8 月 9 日

0 投票

theta = 2*pi*rand(1,50);
rose(theta)
A wild guess:
[x,y,z]=sphere;
figure(1);surf(x,y,z);
figure(2);surf(x,y,z+rand(size(z))/5)

7 件のコメント

Amir Patel
Amir Patel 2011 年 8 月 9 日
Thanks for the reply Fangjun.
Unfortunately, the code you supplied only plots a regular 2D rose plot. I'm looking for something that does it in 3D.
Perhaps I can just plot it separately.
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 9 日
How is a 3D rose plot look like? Do you have a picture to show? I search the web and didn't find any.
Sean de Wolski
Sean de Wolski 2011 年 8 月 9 日
http://www.123rf.com/photo_9720688_illustration-of-a-skyscraper-on-green-sphere.html Like that only the buildings the whole way around?
I'm thinking this looks like a job for a bunch of patches.
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 9 日
@Sean, it is still a 2D graph though.
Sean de Wolski
Sean de Wolski 2011 年 8 月 9 日
I was just trying to get the idea across - in ML it would be a "rotateable" sphere with different height sky scrapers depending on what side you're viewing.
Sean de Wolski
Sean de Wolski 2011 年 8 月 9 日
So:
>> sphere
and then each little rectangle could be at different heights/colors etc.
Fangjun Jiang
Fangjun Jiang 2011 年 8 月 9 日
I was thinking about the same thing. But that is up to the OP. I added that guess to my answer.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

質問済み:

2011 年 8 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by