How I do overlay 2 Matlab fig files?
25 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Struggling in MATLAB
el 13 de Mzo. de 2023
Comentada: Voss
el 14 de Mzo. de 2023
I have 2 .fig files I want to overlay. Only difference between them is the trajectory line. I want to keep the legends same in the overlay figures as in the individual figures. I have attached the .fig files. How should I do it?
0 comentarios
Respuesta aceptada
Voss
el 13 de Mzo. de 2023
f1 = openfig('trajectory id_88092.fig');
f2 = openfig('trajectory id_90788.fig');
leg = findall(f2,'Type','legend');
leg.AutoUpdate = 'off';
ln = findall(f1,'Type','line');
ax = findall(f2,'Type','axes');
ln_copy = copyobj(ln,ax);
uistack(ln_copy,'bottom')
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Object Identification en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!