format number in text box

hello
i hope you are doing well
i have GUI and have textbox i want number to present all in same textbox not number by number. i want all numbers full the textboox not as figuer below

3 件のコメント

Jan
Jan 2021 年 3 月 11 日
I do not undestand, what you want to achieve. What is the current code for producing this output?
dhafar hamed
dhafar hamed 2021 年 3 月 11 日
i write the hex number in text box 1 and i convert the number in text box 2 but it shown as number by number i want to present as 65 66 67 68 69 70 49 50 51 not as
65
66
67
68
69
70
49
50
51
Jan
Jan 2021 年 3 月 11 日
Again: Please post your code. Then it is much easier to suggest a change. Otherwise I have to guess, what might be matching your code, e.g. if this is a figure or uifigure and so on.

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 3 月 11 日

1 投票

S = ['A':'F','1':'9']
S = 'ABCDEF123456789'
strjoin(compose("%02x", S), ' ')
ans = "41 42 43 44 45 46 31 32 33 34 35 36 37 38 39"

1 件のコメント

dhafar hamed
dhafar hamed 2021 年 3 月 12 日
Really i cant thank you enough its work very well

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

質問済み:

2021 年 3 月 11 日

コメント済み:

2021 年 3 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by