M
M
mrsalogub2021-06-22 15:58:06
MATLAB
mrsalogub, 2021-06-22 15:58:06

Text field in gui on matlab?

There is a gui in Matlab (App designer), in the gui there is a text field (text area) with the name app.text_result, data is stored in it, what function can be written to the reset button so that all the contents of the text field are cleared after pressing this button?
Tried: delete(app.text_result.Value);
delete(findobj(app.text_result,'type','text')).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mrsalogub, 2021-06-22
@mrsalogub

That's how it works.
h=findall(app.text_result,'Type','UITextArea');
for i=1:numel(h)
h(i).Value='';
end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question