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, or functions. The 2nd

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, or functions. The 2nd and 3rd pictures are an example of a wrong answer so do not code that please.

image text in transcribed

image text in transcribed

4. (Caesar Cipher) For this problem, you will produce a proper Caesar Cipher that always ensures the message remains alphabetic. Hint: First translate the message so that the character 'A' corresponds to 0 and don't forget to consider the mod function. mod_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 . A possible sample case is: >> ciphertext = mod_caesar (MATHRULES', 6) ciphertext = SGZNXARKY + m; function ciphertext = mod_caeser (message, n) msg = double(message); m = modan, 26); coded_msg msg coded_msg(coded_msg > 90) = coded_msg(coded_msg coded_msg(coded_msg 90) coded_msg(coded_msg > 90) - 90 + 64; msg

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_2

Step: 3

blur-text-image_3

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 Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

3. Who would the members be?

Answered: 1 week ago