フィルターのクリア

How to combine multiple inputs in one string, in GUI ?

4 ビュー (過去 30 日間)
Mohamed Habiballa Abdelmoez
Mohamed Habiballa Abdelmoez 2018 年 9 月 14 日
I want to get different inputs and combine them together in one string to use it somewhere else.
For example:
%%getting 'A' value and 'B' value, then put them in one value 'C'
A = get(handles.text_boxA, 'value');
A = get(handles.text_boxB, 'value');
Then I want to use 'A'and'B' values as one string.
For example:
%%If A=45, and B=85
%I want
C='4585' %%as to be C='AB'
Thank you,
  1 件のコメント
Kevin Chng
Kevin Chng 2018 年 9 月 14 日
C = strcat(A,B), will it help you?

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

採用された回答

KSSV
KSSV 2018 年 9 月 14 日
A='45' ;
B='85' ;
C = strcat(A,B)
D = [A B]
  1 件のコメント
Mohamed Habiballa Abdelmoez
Mohamed Habiballa Abdelmoez 2018 年 9 月 15 日
thank you so much, that is very helpful.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by