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

1 次查看(过去 30 天)
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 中查找有关 Encryption / Cryptography 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by