Question: MATLAB Now its your turn. Write a function (caesar.m) that takes as input two arguments: a string to encrypt and the key (shift value), and

MATLAB

Now its your turn. Write a function (caesar.m) that takes as input two arguments: a string to encrypt and the key (shift value), and outputs a single argument which is a string containing the Caesar cipher encryption of the given string using the given key. The key may be positive (right shift) or negative (left shift). Your function should force the input to be uppercase and you should delete spaces and punctuation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!