Question: Array Generation and Indexing: array 1 = [ 0 . 0 0 . 5 2 . 1 - 3 . 5 6 . 0 0

Array Generation and Indexing:
array1=[0.00.52.1-3.56.00.0-1.1-6.62.83.42.10.10.3-0.41.31.15.10.01.1-2.0]
5 of 6 these questions in the command window]
the array above. (Hint: Use arrayl =[0.00.52.1-3.56.0; 0.0dotsdots?? )
D) w nat is the size of array1?(Hint: Use size function in command window.)
c) What is the value of array 1(1,4)?
d) Evaluate the output of max (array1). Describe its function. (Hint: doc max and figure out how to use it and explain in one sentence.)
e) BONUS [DO IT YOURSELF]- Search online and find the solution yourself: How can we find the maximum of the complete array?
Array size: Determine the size and contents of the following arrays (Take a screenshot of each output). Note that the later arrays may depend on the definitions of arrays defined earlier in this exercise. Understand each output well, you will need it in the next lab and following topics.
[Execute these questions in the command window]
a)a=2:3:8; itialing a variable with linear spacing of 3
b)b=[a'a'a'];
c)c=zeros(1,3); Automatic initialization
d) Analyze the output of previous question(c). What does zeros function generate? Check 'doc zeros' to gain more information.
 Array Generation and Indexing: array1=[0.00.52.1-3.56.00.0-1.1-6.62.83.42.10.10.3-0.41.31.15.10.01.1-2.0] 5 of 6 these questions in

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