フィルターのクリア

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 Center および File ExchangeAudio 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