MATLAB: Rail Fence Encryption function

MATLABral fence

Just wondering how i would do a rail fence encryption function. Unsure on the process.
for an understanding of the code please follow the link below: http://www.braingle.com/brainteasers/codes/railfence.php

Best Answer

reshape the string. Honestly, this is trivial to implement. Is it homework?
Related Question