Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Zachary Holmes
Zachary Holmes am 3 Sep. 2016
Bearbeitet: Star Strider am 3 Sep. 2016
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

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by