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

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

What does this have to do with the tags (image processing)?
Assume steganography. Or modified huffman encoding such as for JPEG.

댓글을 달려면 로그인하십시오.

 채택된 답변

pats = {'00100101';'10100100'};
this_char = 'a';
pats{this_char - 'a' + 1}

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

질문:

2013년 12월 24일

답변:

2013년 12월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by