GUIDE multiple images and variable handling
Mostra commenti meno recenti
My GUI runs a script which takes a single video frame and saves it as an image. I run several calculations on the image. My problem is displaying the resulting variables in static textboxes and displaying the fft image in a different axes than the captured image.
So how do I redirect or display Variables in the GUI static textboxes instead of the command window?
Thanks
1 Commento
Krishna Kumar
il 29 Giu 2011
can you elaborate what problem you are facing.
Risposta accettata
Più risposte (2)
Krishna Kumar
il 29 Giu 2011
1 voto
The variables can be displayed using sprintf (assign sprintf output to the static text's string property). For plotting the fft in a separate axes, you can use 'axes(h)' to make the axes with handle 'h' the current axes. Then you can plot the fft as you want. What is your problem exactly?
1 Commento
Colm
il 29 Giu 2011
Harry MacDowel
il 29 Giu 2011
1 voto
I am not really clear too about the question.
Anyway, displaying answers on the static textbox should look like this:-
set(handles.yourstatictext1,'String',num2str(yourvariable)); Keep in mind that all static and editable textbox display strings.
3 Commenti
Colm
il 29 Giu 2011
Colm
il 29 Giu 2011
Walter Roberson
il 29 Giu 2011
Edit the code to instead
set(handles.yourstatictext1,'String',num2str(Pixels))
Categorie
Scopri di più su Video Formats and Interfaces in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!