Question: Level 0 . 2 A: charVec Consider the following lines of code below, then answer the questions. ` ` ` string = 'James,hello' [ person

Level 0.2A: charVec
Consider the following lines of code below, then answer the questions.
```
string = 'James,hello'
[person,quote]= strtok(string,',')
mask = person >'g'
person(mask)= person(mask)+1
mask2= quote =='a' & quote =='e' & quote =='i' & quote =='o' & quote =='u'
quote(mask2)=[]
option1=[person 'says' quote]
option2= sprintf('%s says %s', person, quote)
len1= length(option1);
len2= length(option2);
```
1. What is the final value of person?
2. What is the final value of quote?
3. Is len1 greater than, less than, or equal to len2?
Please format your answer as such in the text box below:
1.
2.
3.
Level 0 . 2 A: charVec Consider the following

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 Programming Questions!