assigning value to character and that value is assigned in the pattern

8 Ansichten (letzte 30 Tage)
sir,i have defined a pattern['00100101';'10100100'] and an character array chars{'a','b'}; if i give the input character as 'a' then it should be assigned as '00100101'.sir could you help me how to write the code for it.
  2 Kommentare
Image Analyst
Image Analyst am 24 Dez. 2013
What does this have to do with the tags (image processing)?
Walter Roberson
Walter Roberson am 24 Dez. 2013
Assume steganography. Or modified huffman encoding such as for JPEG.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Dez. 2013
pats = {'00100101';'10100100'};
this_char = 'a';
pats{this_char - 'a' + 1}

Weitere Antworten (0)

Kategorien

Mehr zu Denoising and Compression 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