Answered Essay: Function Name: braid Inputs: 1. (char) A 1 times N string 2. 2. (char) A 1 times N string 3. (char) A 1 times N string Outputs: 1. (char) A 1 tim

Need matlab help, also can you explain how you did it I’m lost.

Homework 3-Vectors and Strings Function Name: braid Inputs: 1. (char) A 1xN string 2. (char) A 1*N string 3. (char) A 1xN string Outputs: 1. (char) A 1x(3N) string combining the input strings Function Description: Oh nol The radios used to call plays to the quarterback have mysteriously stopped working at Mercedes-Benz stadium! Luckily, Coach Paul Johnson always has a plan. He and two boards for everyone to assistant coaches encode the plays into three separate message see. QB Matthew Jordan quickly catches on, but he didnt leam MATLAB as part of his BBA, so he has DB Zach Matthews, an ME, write a decoder for him Here are the rules for decoding Your three input string components will be the same length and should be woven or braided togother so that the first string will be at the 1st, 4th, 7th.. indices and the 2nd string will be at the 2nd, 5th, t.. i ndices and the 3rd string will be at the 3rd, 6th, 9t... indices Once you have created this string, reverse i to find the hidden message Example: Given the three strings GR PXE NTEMEH and ISLA T. the string created by braiding the strings together will be GNIRTS ELPMAXE EHT Continuing with this example, your final output string would read: Hints: . Think about using the colon operator to create an index vector . For even more funzies, you could write the inverse of this function (a function that takes a string and encodes it). Then you can be just like your icon, Coach Paul Johnson Ran developed for use against unsic)ga, as they would never catch on. ·

Function Name: braid Inputs: 1. (char) A 1 times N string 2. 2. (char) A 1 times N string 3. (char) A 1 times N string Outputs: 1. (char) A 1 times (3’N) string combining the input strings Function Description: Oh nol The radios used to call plays to the quarterback have mysteriously stopped working at Mercedes-Benz stadium! Luckily, Coach Paul Johnson always has a plan. He and two assistant coaches encode the plays into three separate message boards for everyone to see. QB Matthew Jordan quickly catches on, but he didn’t learn MATLAB as part of his BBA, so he has DB Zach Matthews, an ME, write a decoder for him. Here are the rules for decoding. Your three input string components will be the same length and should be “woven” or “braided” together so that the first string will be at the 1st, 4th, 7th indices and the 2nd string will be at the 2nd, 5th, 8th.. indices and the 3rd string will be at the 3rd, 6th, 9th… indices. Once you have created this string, reverse it to find the hidden message. Example: Given the three strings “GR PXE” “NTEMEH” and “ISLA T”, the string created by braiding the strings together will be “GNIRTS ELPMAXE EHT”. Continuing with this example, your final output string would read: “THE EXAMPLE STRING” Think about using the colon operator to create an index vector. For even more funzies, you could write the inverse of this function (a function that takes a string and encodes it). Then you can be just like your icon, Coach Paul Johnson! *Plan developed for use against u(sic)ga, as they would never catch on.

Expert Answer

 

function encoded=braid(a,b,c)
N=length(a);%length of string stored in N
encoded=”;%string initialized
k=1;
for i=1:3:3*N%this loop will run for i=1 to 3*N and will skip 3 steps i.e i=1,4,7…
encoded(i)=a(k);%1st char of encoded string from a
encoded(i+1)=b(k);%2nd char of encoded string from b
encoded(i+2)=c(k);%3rd char of encoded string from c
k=k+1;
end
%now reversing
L=length(encoded);
for i=1:L/2 %will run till half the length of encoded string
temp=encoded(i);%temp stores the i’th character
encoded(i)=encoded(L-i+1);%the ith space stores ith character from last
encoded(L-i+1)=temp;%ith space from last stores character from ith space from start
%thus, the string gets reversed in traversing from start to middle
end

Buy Essay
Calculate your paper price
Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons:

Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed.

Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time.

Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free.

Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time.

Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied.

24/7 Customer Support

Our agents are ready to help you around the clock. Please feel free to reach out and enquire about anything.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.

STEP 1

Submit Your Essay/Homework Instructions

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.

STEP 2

Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.

STEP 3

Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.

STEP 4

Receive your Paper

After Editing, your paper will be sent to you via email.