Filter löschen
Filter löschen

pls finding error" Undefined function or variable "t"." while executing

1 Ansicht (letzte 30 Tage)
Soumya pradhan
Soumya pradhan am 4 Mär. 2013
char t= 'hello123';
t=uint8(t);
len=length(t)
pow=[];
cipher_text=[];
for i=1:len
pow=[pow;t(i).^(enckey)]; %each element of the pt matrix(plain text) is raised to the power of encryption key(enc_key) and stored in pow matrix(power matrix)
cipher_text=[cipher_text;mod(pow(i),n)];% cipher text is calculate

Antworten (1)

Ajay Pherwani
Ajay Pherwani am 4 Mär. 2013
just remove 'char' keyword in the 1st line , and make it as t='hello 123' ; t=uint8(t); .. and so on

Kategorien

Mehr zu Encryption / Cryptography 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