Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]

How to write this matlab function that is a cell extractor? image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

LO1 Understand human resource management and define human capital.

Answered: 1 week ago