function coded = caesar (v,s)
for ii = v+s
else if (ii<32)
ii = 126-(32-ii-1);
The above given code is made for a decoder and an encoder so when i execute it, the code works fine until it reaches the end of the string (v+s) , at the end it seems the variable ii is assigned a value "the right one" but the statement " coded(count)=ii " does not run (the loop skips it the last iteration) , is there something i am missing here.
the input i gave is mentioned below
and coded returns the value '~' instead of ' '