Question: I need help for my matlab homework. and the code call your information is inputString='Ones and 1 is sometimes two';[outputString] = ScrambleLetters(inputString) 0

I need help for my matlab homework. and the "code call your information is " inputString='Ones and 1 is sometimes two';[outputString] = ScrambleLetters(inputString) "I need help for my matlab homework. and the "code call your

0 2344 1 : It dseont mettar waht oedrr the lrettes in a wrod are. (Strings) Part 3 (final) of larger project Alfa This tool is provided by a third party Your acthity is aways recorded, but you may need to refresh the page to fill n the banner LAB ACTIVITY It dseon't mettar waht oedrr the Irettes in a wrod are Write a function ScrambleLetters to take a phrase consisting of letters and non-letters, identify al the letters and then for all consecutive letters reverse the subsequence of the letters as was descibed in the previous assignment Confuse the reader?". The input phrase could be any length. The input sentence and output phrase whould be a character array. As subfunctions the function ScrambleLetters should use the functions FindConsecutiveOnes and ReverseLetters written in the previous assignments "How many consecutive ones?" and "Confuse the reader?" Restriction: The function ScrambleLetters must use the custom functions FindConsecutiveOnes and ReverseLetters written in written in the previous assignments "How many consecutive ones?" and "Confuse the reader?", respectively. Your function can simply call the function FindConsecutiveOnes and ReverseLetters For example: >>inputstring- 'Ones and 1 is sometines two >>[output string] ScrambleLetters(inputString) outputStrins Oens and 1 is semitenos tuo Your Function Save C Reset MATLAB Documentation 1 function [outputst ring] scrambleL etters(inputString) % Your new code goes here s end 7 function sout: Reverseletters(sin) % The code you already written in "confuse the reader?" goes here end function [indicator,startPositionOfAllones,endPositionofAl10ns, lengthofAl10nes] FindConsecutiveOnes (input 15 % The code you already written in "How many consecutive ones?" goes here end

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!