How can I record a section of a graphic user interface made with AppDesigner?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to record a video of a dynamic graph that belongs in a graphic user interface, but I can't capture only the axes, meanwhile my code captures the whole interface.
This is the code I'm using:
plot (app. ZoomAX, Rs, resultplot, '.k');
axes=app. ZoomAX;
axes.Units = 'pixels';
pos=axes.Position;
marg = 30;
rect = [-marg,-marg, pos(3)+2*marg, pos(4)+2*marg];= getframe(axes,rect);
ax.Units='normalized';
writeVideo(v,F);
Also, how can I get pos value?
4 comentarios
Geoff Hayes
el 7 de Oct. de 2022
@FRANCESCA SANASI - I think the error that you are seeing with respect to the frame size is because its size is changing from one iteration to the next and you cannot write differently sized frames to the video file. Is this the case?
Respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots 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!