Command lines appear when I run an app.
Afficher commentaires plus anciens
Hello everyone,
I am making an app on "Matlab app designer" and in a near future, when I have the app done, I would like to have it like an executable, I mean, like a program.
The point is that whenever I open Matlab app designer and run my app, in the command window of matlab appears all the names and dimensions of the widgets that are on my app (boxes, menus, text, windows...etc) as you can see in the photo below.

Is this supposed to happen, or is it supposed to be the command window clear without any command line? If in a near future I would like to export my app like an executable archive, do I have to get rid off this phenomenon?
Thank you very much
3 commentaires
dpb
le 24 Oct 2021
You've got code lines without the output-echo-suppressing ";" at the end in your source code.
The editor will have warnings flagged for those to help you find them.
Add the ";" at the end of each code line missing one (except for "FOR", "END" and such construct lines) and it'll go away when you find and fix them all...
ErikJon Pérez Mardaras
le 26 Oct 2021
Stephen23
le 6 Fév 2025
Réponse acceptée
Plus de réponses (2)
Image Analyst
le 26 Oct 2021
You can compile with the -e option to mcc to compile your app without a console (command) window, though I don't recommend it since often error messages will pop up there and if it's not there you won't see them and won't know what went wrong.
mcc -e yourApp.m
Image Analyst
le 28 Oct 2021
You might have done something like
app.NdeinputsLabel.String = 'whatever' % no semicolon
and when it hits that line, it lists all the fields of app like you've shown in your screenshot.
However, I've noticed several times now with R2021b that sometimes it lists all my lines of code regardless of whether semicolons are there or not. It's as if somehow "echo on" got turned on. I can do
echo off
and that fixes it (for a while), but I have no idea who, what, or how echo got turned on in the first place.
1 commentaire
I've never noticed such a phenomenon in or prior to R2020b; seems as though that symptom in R2021b would be worthy of bug report. Would certainly be annoying...
I don't recall ever using echo so I don't ever think about it even existing...it's a good thought even if OP isn't on R2021b yet to try setting it off.
I see it is another that won't echo (so to speak :) ) it's current state but is a toggle. I suppose somewhere in the bowels may be an inspectable property to determine state...
Catégories
En savoir plus sur Text Data Preparation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




