Is there a function for inverting the 'reshape' command?

조회 수: 29 (최근 30일)
Zachary Holmes
Zachary Holmes 2016년 9월 3일
편집: Star Strider 2016년 9월 3일
For my rail fence cipher, i obtain the correct output. But am wondering if there is a simple command to decipher the output?
function cipher_text = rail_fence_cipher(origionalText,key)
origionalText = [origionalText,origionalText(1:(key-mod(length(origionalText),key)))];
cipher_text = reshape(origionalText,key,[]);
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by