Question: 1. For a vector A-13:3:15], the element A(1,3) is A) 6 B)9 C)12 D)15 The command for finding the natural log of a number is
1. For a vector A-13:3:15], the element A(1,3) is A) 6 B)9 C)12 D)15 The command for finding the natural log of a number is A) In B) log C) logn D) nlog When inputting a matrix, each new row is separated by a A) B) C)I D) 2. 3. 4. The number of elements in a vector generated by [7:0.1:16] is A) 89 B) 90 C)91 D) 92 5. Consider the following for loop problem sum1-3; for k-2:1:6 sum1-sum1+k; end sum1 The output of the last line is A) 8 B) 12 C) 17 D) 23 What value does the variable P contain after the Matlab code below executes? for P 1:1:5 6. B PA2; end P B+5; A) 30 B) Nothing-Operation is not possible C)5 D) 10 7. Given that X-1:4; while (1) U-XA2 +U If i-N, break, end i #1 end The output of the last U is A)2, B)6, C)15 D)31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
