Transpose not working in Set poperty

2 ビュー (過去 30 日間)
Nitesh
Nitesh 2014 年 4 月 11 日
コメント済み: Nitesh 2014 年 4 月 11 日
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 are in vertical order 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 件)

Image Analyst
Image Analyst 2014 年 4 月 11 日
Not really sure what you mean "in vertical order", but try running flipud() or fliplr() on g. Transpose won't do anything.
  1 件のコメント
Nitesh
Nitesh 2014 年 4 月 11 日
sir, its still the same situation. by vertical I mean the following:
actually output should be: hello
but its:
h
e
l
l
o
g is in binary value and so first I am converting it into char(g) but now the output is as I told above vertical. so I am using transpose of g but on output screen answer is coming till vertical part and as soon as I am writing transpose of g I get blank output screen.

サインインしてコメントする。

カテゴリ

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