When you retrieve the String property of the edit box, you will get a character vector or possibly cell array of character vectors. . If that character vector represents numeric data then you need to convert from character to numeric. For scalar values you would use str2double. For non scalar the best thing to use depends on what representations you want to support.
MATLAB GUI editbox sequence
1 次查看(过去 30 天)
显示 更早的评论
How can I get input sequence using editbox in MATLAB GUI so that I may apply convolution commands on my sequences?
On MATLAB script, I am able to take two sequences using 'input' command and applying 'conv' command. But in MATLAB GUI, when I enter my sequence in editbox, i am getting below errors
Error using specgraph.stemseries/set Array must be numeric or logical.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!