creating a 3D polar plot
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!