Why MatlabWindow changes view when Matlab is fullscreen?

8 vues (au cours des 30 derniers jours)
Mr.Alb
Mr.Alb le 17 Mai 2022
Hi everyone,
I'm wondering why MatlabWindow opens as application other than Matlab main app(v. R2022a). It's especially annoying when I'm in fullscreen mode, because every callback functions (uifigure) I open changes the view to taht of my PC home. Then when I go back to the Matlab fullscreen app I see the uifigure at the top, but it requires me to move between windows, which is really annoying indeed.
I am trying to find a way to get uifigure to open in the same way that normal figures do when working in full screen (e.g. when you plot something, the new figure opens on top without throwing you to homescreen).
I don't know if also you face this issue. Please, let me know if it's clear what I mean. Thank you!

Réponses (1)

Abhishek Chakram
Abhishek Chakram le 21 Sep 2023
Hi Mr.Alb.
It is my understanding that you want to dock the figure windows that appear out of the view into the main MATLAB window pragmatically. You can set the “Window Style” property of the figure to ‘Docked’.
Here is an example for the same:
fig = figure;
set(fig,'WindowStyle','docked');
Best Regards,
Abhishek Chakram

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by