Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Zachary Holmes
Zachary Holmes el 3 de Sept. de 2016
Editada: Star Strider el 3 de Sept. de 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

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by