Two separate geobubbles/geomaps in a for loop?

3 次查看(过去 30 天)
I am building a kalman filter to track airplanes in three dimensions. At the end of my code I have to compare my two different (real and filtered) values by using geobubble.
Is there a way (like hold on) to keep both results at the same figure.
The simplified code is in below:
for k=1:Nsteps
geobubble(x_u_series(1,1:k),x_u_series(3,1:k),x_u_series(3,1:k)
geobubble(z_series(1,1:k),z_series(2,1:k),z_series(3,1:k))
end
Thank you!

回答(1 个)

Cris LaPierre
Cris LaPierre 2021-1-5
A thought
for k=1:Nsteps
lat = [x_u_series(1,1:k) z_series(1,1:k)];
lon = [x_u_series(3,1:k) z_series(2,1:k)];
sz = [x_u_series(3,1:k) z_series(3,1:k)];
geobubble(lat,lon,sz)
end

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by