Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fprintf("a)");
- string1 = "NLOGJGYYNMJONCH";
- p1 = double(string);
- disp(p1);
- n = 15;
- for i=1:26;
- p1=p1+1;
- for j=1:n;
- a(j) = char([mod(p1(j), 26)]+65);
- end
- disp(a);
- end
- disp("");
- fprintf("b)");
- string2 = "ENFVYNTBRFPUVAN";
- p2 = double(string2);
- disp(p2);
- n = 15;
- for i=1:26;
- p2=p2+1;
- for j=1:n;
- a(j) = char([mod(p2(j), 26)]+65);
- end
- disp(a);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement