How I can make GUI edittext box to hold matrix data?

2 ビュー (過去 30 日間)
Ekemini Stephen
Ekemini Stephen 2011 年 10 月 4 日
I prepared a GUI with many edit text boxes which I want to use for calculations. I want to be sure the edit text boxes are actually holding the matrix data inserted into them. Each of the edit text box is prepared as multiline text box. All the result am getting are NaNs. Thank for helping out.

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2011 年 10 月 4 日

Walter Roberson
Walter Roberson 2011 年 10 月 4 日
Could you show us an example output from
t = get(ABoxHandle, 'String');
class(t)
size(t)
if iscell(t); v = t{1}); else; v = t(1,:)); end
disp(v)
str2num(v)
and please also show how you are currently converting the text to numbers.

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by