Using skyplot and hold on
10 ビュー (過去 30 日間)
古いコメントを表示
I am creating a skyplot. I would like to have different colorcodes for 3 sets and so like normally(which we generally do for plot function) wan't to use hold on and plot 3 sets on the same skyplot, but the error 'Using hold with skyplot is not supported.' appears. Is there an alternative function to hold on/hold off?
0 件のコメント
採用された回答
Chunru
2021 年 12 月 14 日
gnss = gnssSensor;
pos = [0 0 0];
vel = [0 0 0];
[~, ~, status] = gnss(pos, vel);
satAz = status.SatelliteAzimuth;
satEl = status.SatelliteElevation;
% Use GroupData property
skyplot(satAz,satEl, GroupData=categorical([1 1 1 2 2 2 3 3]))
legend("1","2","3")
4 件のコメント
Chunru
2021 年 12 月 14 日
as1=[az1,az2,az3,az5];
ae1=[el1,el2,el3,el5];
as2=[az6,az7,az8,az9,az10,az13,az16];
ae2=[el6,el7,el8,el9,el10,el13,el16];
as3=[az11,az12,az14];
ae3=[el11,el12,el14];
asall = [as1 as2 as3];
aeall = [ae1 ae2 ae3];
g = [onse(size(as1)) ones(size(as2))+1 ones(size(as3))+2];
h=skyplot(asall, aeall, MrkerSize=3, GroupData=categorical(g));
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で GNSS Positioning についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!