creating a 3D polar plot

1 次查看(过去 30 天)
Polychronis
Polychronis 2015-1-30
Hello all,
I have the following 14 by 16 data matrix:
Data_Right_Arm= [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0.8 1 1 0
0 0 0 0 0 0 0 0.5 0 0 0 0 0.9 1 1 0
0.95 0.5 0.5 0 0.5 1 1 0.95 0 0 0 0 0.6 1 1 1
1 0.95 0.9 1 0.95 0.95 0.9 1 0 0 0 0 0.6 1 1 1
1 1 1 1 0.7 0.95 0.8 0.8 0 0 0 0 0.5 1 0.95 0.95
0.9 0.8 0.85 0.8 0.4 1 1 0.95 0 0 0 0 0.55 1 1 1
1 1 0.85 0.85 0.85 0.8 0.9 0.85 0 0 0 0 0.55 1 0.95 1
1 0.85 0.95 1 0.8 0.95 0.95 0.95 0 0 0 0 0.55 0.95 1 1
0.9 0.8 1 1 0.5 1 0.95 1 0 0 0 0 0.75 1 0.95 0.95
0.85 0.95 0.85 1 0.8 0.95 0.9 0.95 0 0 0 0 0 1 1 0.75
0.9 0.9 1 1 0.7 1 0.9 0.8 0 0 0 0 0 0 0 0.75];
which for each column there is an angle correspondence as follows:
angles_deg=[0 22.5 45 67.5 90 112.5 135 157.5 180 202.5 225 247.5 270 292.5 315 337.5]
I need to create a 3D polar plot grid with the cells containing colours that represent the values of my data matrix from 0 to 1. I tried to use the "polarplot3d" function as follows:
t2 = [11.25 371.25]*pi/180;
r2 = [0 1.5];
%%Plot using default arguments
figure('color','white');
polarplot3d(Data_Right_Arm,'radialrange',r2,...
'polargrid',{15 16},'tickspacing',22.5, 'GridScale', [100 100], 'angularrange',t2 );
view([-18 76]);
caxis([0,1.0]);
colorbar('vertical');
But I haven't managed to get the right results. Any suggestions would be greatly appreciate it.
Best,
Akis

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by