Show values in Edit Text from a variable

Block=5; Binary=round(rand(1, Block)); %Round to 0 or 1 and generate 1 0 1 0 0 % I use set(handles.Edit1,'String',Binary) but it does not work
How to show this binary stream stored in 'Binary' in EditText1 Plz Help

回答 (1 件)

Image Analyst
Image Analyst 2016 年 5 月 29 日

0 投票

I'm pretty sure it works in R2016a. Perhaps in older versions you might need to convert Binary to a string
set(handles.Edit1,'String', num2str(Binary));

カテゴリ

製品

タグ

質問済み:

2016 年 5 月 29 日

回答済み:

2016 年 5 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by