フィルターのクリア

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

1 回表示 (過去 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 Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by