필터 지우기
필터 지우기

How to transpose characters on edit box using set property??

조회 수: 2 (최근 30일)
Nitesh
Nitesh 2014년 4월 12일
답변: Walter Roberson 2016년 1월 15일
I am working on audio steganography and the coding is completed, but now I am only stuck at showing the output correctly.
I use the following command to show secret message on edit box:
set(edit6,'visible','on','string',char (g),'position',[1055 100 200 100],'horizontalalignment','left');
but the characters shown on output edit box are in vertical order(like a column matrix) and so I tried using char(g') in the code but it showed nothing on output. Then I tried giving one variable to char(g') and keeping that variable in place of char(g) but still it didn't work.
So did transpose work on set property ? please tell how to rectify this.?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 15일
My guess is that your g is numeric, such as you wanting numeric value 5 to show up as the character '5'. In that case,
set(edit6,'visible','on','string', num2str(g),'position',[1055 100 200 100],'horizontalalignment','left');

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by