Question: How to write this matlab function that is a cell extractor? Write a function with the following header: function (upper case, lower case, numbers, special]
Write a function with the following header: function (upper case, lower case, numbers, special] = mycell_extractor(array) where _ array is a 1 _ n cell array Each element of array is either: _ A non-empty row vector of class double _ A non-empty row vector of class char (i.e a non-empty character string). _ A non-empty cell array that follows the same format as array _ uppercase is a non-empty row vector of class char that contains all the upper case characters found in the elements of the input parameter array, in the order in which they appear in array. _ lower_case is a non-empty row vector of class char that contains all the lower case characters found in the elements of the input parameter array, in the order in which they appear in array _ numbers is a non-empty row vector of class double that contains all the elements of class double (except for NaN. -Inf. and Inf) found in the elements of the input parameter array, in the order in which they appear in array. _ special is a non-empty row vector of class double that contains all the elements of class double among NaN, -Inf. and Inf, that are found in the elements of the input parameter array, in the order in which they appear in array. Treat lower case letters from a to z as lower case characters, and any other character as upper case. You can assume that you will _nd in array: _ At least one lower case character; and 10 _ At least one upper case character; and _ At least one element of class double that is not NaN. -Inf, or Inf; and _ At least one element of class double that is one of NaN. -Inf. and Inf In other words, none of your function's outputs should be an empty array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
