How to "Pretty( )" output in GUI?
Afficher commentaires plus anciens

Hello all, I am working on my assignment and I have created a GUI in Matlab one part of which takes user input (tag:inputfun) and integrates it and its working perfectly but I want that output to be as we write on paper i.e. in the form of "Pretty( )" so that user can easily understand. I tried a lot but I was unable to do that. Can anyone please help me so that I can submit my assignment as soon as possible. Hoping for Answer :)
2 commentaires
william taipe
le 24 Sep 2016
What was the solution to this query, because I have the same problem
Walter Roberson
le 24 Sep 2016
william taipe, see the solution below at http://www.mathworks.com/matlabcentral/answers/113328-how-to-pretty-output-in-gui#comment_192935
Réponse acceptée
Plus de réponses (3)
Image Analyst
le 22 Jan 2014
0 votes
I never heard of Petty(), but you can click anywhere in the editor window and type control-a followed by control-i to fix the indenting. If you highlight a section of code, it will fix up that highlighted section only.
6 commentaires
Image Analyst
le 22 Jan 2014
I don't know what you consider the "output" to be, but if it's not your code and it's some measurements that you want to write to a file, you can use fprintf() to make it look just like you want it.
Albert Shesman
le 27 Jan 2014
Image Analyst
le 27 Jan 2014
Sorry, I knew that - just a typo. Anyway, I don't have it so it must be in a toolbox that you have (and should list above in the Products section) that I don't have.
Albert Shesman
le 28 Jan 2014
Image Analyst
le 28 Jan 2014
You still didn't list it in the Products section, so I did it for you.
Albert Shesman
le 29 Jan 2014
Abdul Goffar
le 10 Déc 2014
I got same trouble with you, but its't not solved yet. This is the error messages I got. Could you please help me fix it?
??? Error using ==> evalc
Undefined function or method 'pretty' for input arguments of type 'char'.
Error in ==> contoh>pushbutton3_Callback at 129
outstr=evalc('pretty(y)');
Abdul Goffar
le 10 Déc 2014
0 votes
sorry... I was just solved it.. Thx so much :))
Catégories
En savoir plus sur Assumptions 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!