Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Nitesh
Nitesh am 12 Apr. 2014
Beantwortet: Walter Roberson am 15 Jan. 2016
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.?

Antworten (1)

Walter Roberson
Walter Roberson am 15 Jan. 2016
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');

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by