selstruc(): How to avoid hitting "Return" in command window?

9 vues (au cours des 30 derniers jours)
Alexander Fenichiu
Alexander Fenichiu le 14 Août 2024
Réponse apportée : Tianyu le 15 Août 2024
I'm building a little App (.mlapp) for System Identification based on this example: https://www.mathworks.com/help/ident/gs/identify-linear-models-using-the-command-line.html
I'm using selstruc(arxstruc(...)) to estimate model parameter but after selection, it's not sufficient to close with the "Close" button, but I have to switch to main Matlab command window and hit return, as mentioned in the dialog.
Is there any way to avoid this and continue directly after pressing "Close"?

Réponse acceptée

Tianyu
Tianyu le 15 Août 2024
Hi Alexander,
I don't think there is a way to avoid that, this is the current APP behavior.
The only thing I can think of is to avoid using GUI and rely on command line to select order automatically.
% V is output from arxstruc or ivstruc
order = selstruc(V,c); % c is a number
order = selstruc(V,'aic');
order = selstruc(V,'mdl');
More details in doc
https://www.mathworks.com/help/ident/ref/selstruc.html?searchHighlight=selstruc&s_tid=srchtitle_support_results_1_selstruc

Plus de réponses (0)

Catégories

En savoir plus sur Linear Model Identification dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by