Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions