Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 Exercise One -40 points 1. In one single matlab script file (exercise01.m), implement: 2. Create a variable, A, whose value is the string hello;
1 Exercise One -40 points 1. In one single matlab script file (exercise01.m), implement: 2. Create a variable, A, whose value is the string hello; 3. Create a cell array, C, containing the strings: 'hello', 'goodbye', 'hola', 'hello hellen', 'helmet, 'hello rhea ven', hillsboro','say hello', myfellow. Each index in your cell array should contain one of these strings. Note, you can create an empty cell array by setting it to an empty cell, e.g. C and you can add a string to the end of a cell array by e.g. Clend+ 1)-hello; . Write code to count how many times the (exact) string 'hello' occurs in your array. Now write code to count how many times the word hello occurs in your array. Useful functions: for, find, strcmp, isempty, strfind. 5. Write code to find the most similar string to 'goodfellow' in your array (where similarity is measured as the number ofletters in common). Useful function: intersect. 6. Can you suggest an improvement by adding extra points if a character is in the right place? Explain. The quality of the answer depends whether it can be implemented following your explanation, or even better if you implement it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started