Question: ( 4 . 1 9 Modified ) the following names: Smith, Johnson, Williams, Jones, Brown, Davis, Miller, Wilson ( a ) Create a padded character
Modified the following names:
Smith, Johnson, Williams, Jones, Brown, Davis, Miller, Wilson
a Create a padded character array called Namechar with the char function.
b Convert the Namechar variable to a string array called Namestring.
c Use the size function to determine the dimensions of each of the variables Namechar and Namestring, and compare the results.
d Use the sort function to sort each of the arrays and name them sortedchar for Namechar and sortedstring for Namestring.
e Use the sortrows function to sort each of the arrays Namechar and sortedstring for Namestring.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
