MATLAB GUI editbox sequence

1 回表示 (過去 30 日間)
Ahmer Ahmed
Ahmer Ahmed 2018 年 4 月 17 日
回答済み: Walter Roberson 2018 年 4 月 17 日
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.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 4 月 17 日
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.

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by