Question: use matlab or octave to code. DO NOT USE if statements, while or for loops, reshape commands. Only use vectors, matrices, functions, or strings. 3.

use matlab or octave to code. DO NOT USE if statements, while or for loops, reshape commands. Only use vectors, matrices, functions, or strings.
3. (Basic ASCII Caesar Cipher) A very ancient cryptographic technique for hiding a message was to use a Caesar Cipher where each letter of a message is shifted down the alphabet (i.e. towards later letters) by a fixed amount. Normally, if a letter falls off the end of the alphabet it should wrap back onto the beginning. For this problem, we will consider a very basic implementation of such a cipher, were we do not worry about this wrapping. basic_caesar Function: Input variables: a string representing the message to be encoded a scalar representing the "key" (the amount to shift by) Output variables: a string representing the encoded message (note: you will have to force the result of your computations to be a character string by using the function char( applied to your resulting message) . A possible sample case is: >> ciphertext = basic caesar ('MATHRULES', 6) ciphertext = SGZNX (RKY
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
