Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In a cell array, one cell might contain a array of real number, another yet anot

ID: 3582952 • Letter: I

Question

In a cell array, one cell might contain a array of real number, another yet another vector of complex numbers. The function rand is to generate a random number under Gaussian (normal) distribution When we execute: "n = 3; while n > 0; n = n + 1:end", the while loop is run in infinity times and n is continuously increasing without ending. When x = 0, we execute the code: isempty (x), the answer is 0. The command: length (strfind('MISSissippi', 's'))will return the answer of 4 Let a = int16(4). The variable "a" occupies 4 bytes. Sparse arrays provide an extremely useful and compact way to represent large arrays containing many nonzero values. we want to place a title on a graph, we use title command before plot command.

Explanation / Answer

23.Yes.

A cell array is a data type with indexed data containers called cells, where each cell can contain any type of data. Cell arrays commonly contain either lists of text strings, combinations of text and numbers, or numeric arrays of different sizes.

24.Yes

25.while run infinaity times.because in each itaration n value always greater than zero

26.No.The answer is 1. because isempty checks x is '0' ,it returns 1 otherwise 0.

27.No.

k = strfind(str,pattern) searches str for occurrences of pattern. The output, k, indicates the starting index of each occurrence of pattern in str. If pattern is not found, then strfind returns an empty array, []. The strfind function executes a case-sensitive search.

The pattern is found in two locations indexes are 5,6.So this function return an array with two elements 5.6.Then

the length of this array is 2.

28.No.

intArray = int16(array) converts the elements of an array into signed 16-bit (2-byte) integers of class int16.

a occupies 2 bytes.

29.No

A sparse array is an array in which most of the elements have the default value (usually 0 or null). The occurrence of zero-value elements in a large array is inefficient for both computation and storage.

30.Yes