필터 지우기
필터 지우기

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,

채택된 답변

KSSV
KSSV 2018년 9월 14일
A='45' ;
B='85' ;
C = strcat(A,B)
D = [A B]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by