How to assign multiple inputs from the same edit text box in MATLAB GUI into a cell array variable?

1 次查看(过去 30 天)
Hello. My goal is to create a cell array variable from the inputs of the edit text box. For example,
name={'first input' ; 'second input' ; ...}
Is this possible or should I try a different approach on creating that cell array variable? If it's the latter, can you help explain that? Thank you.

回答(1 个)

Walter Roberson
Walter Roberson 2019-4-23
name = {handles.First_editbox.String, handles.Second_editbox.String, ...}
  7 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by