Question: 1. Give a short-cut expression of the data pattern or give the output data of the short-cut expressions. Use Matlab to solve the problem. SHOW
1. Give a short-cut expression of the data pattern or give the output data of the short-cut expressions.
Use Matlab to solve the problem. SHOW CODE
(a) 3, 7, 11, 15, 19, 23, 27, 31, 35, 39, 43, 47, 51, 55, 59, 63, 67
(b) -32, -25, -18, -11, -4, 3, 10, 17, 24, 31
(c) [17:-5:-6]
(d) [-5:-2:6] (e) [4:9]
2. Determine the size and contents of the following arrays. First, clear all variable before doing this problem. Note that the later arrays may depend on the definitions of arrays defined earlier in this exercise.
Use Matlab to solve the problem. SHOW CODE
(a) a = [3 5-4]; b=[1 a(2) 0 a]; What is b?
(b) c(2,4)=6; What is c?
(c) d=[1 2]; d(6)=8; What is d?
(d) A = [5 7 8; 0 1 9; 4 3 6]; What is size(A)?
(e) A = [5 7 8; 0 1 9; 4 3 6]; A(:,:,2) = [1 0 4; 3 5 6; 9 8 7]; What is size(A)?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
