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

Given x = [3 1 5 7 9 2 6], explain what the following commands \"mean\" by summa

ID: 3674563 • Letter: G

Question

Given x = [3 1 5 7 9 2 6], explain what the following commands "mean" by summarizing the net result of the command. X(3) x(1:6) x(1,5) max(x) min(x) mean(x) sum(x) x(1, 4) = 10 x' sum(x')' Given the array A = [2 4 1;6 7 2;3 5 9]. Provide the commands needed to: Assign the element in first row and third column of A to a value of 10. Computer the sum of all the rows and columns. Compute the sum of column 2 only. Multiply A with 3 X 3 matrix of all ones. Compute the determinant of A. Given the arrays x = [1 4 8], y = [2 1 5] and a = [3 1 6;5 2 7], determine which of the following statements will correctly execute and provide the result. If the command will not correctly execute, state why it will not. x + y x + A x' = y A - [x' y'] [x; y'] [x; y] A - 3 Create a 3 X 3 matrix 'B' using random integers (1 to 100) and answer the following: Find the sum of the diagonal Find the ninth element. Displays elements in all rows and column 2 Find the size of the matrix Find the Eigen values Create the matrix 'G' using the information from the table: Find the mean score of all students for Chemistry and Psychology after a 10 point curve. Find the minimum score of all courses. Find the maximum scores for all courses. Calculate the percentage (%) of each student. Maximum points for each course were 100 points. A = [2 0; 1 -5] B = [3 -2 0; 4 1 5; 0 -3 4] Compute the following operations; det(A) B' det(B) A^2 inv(A) inv(B) Create multidimensional array 'K' (any size) using either the onesO, ZerosO, or the randO function. B = rand(4,3,2) Using array created through random function above, perform the following operations (choose any 5) length Ndims Size Circshift Reshape rot90 sort sortrows fliplr repmat Take help from 'HELP' command if needed.

Explanation / Answer

Multiple Questions : Answering 1st.

1octave:2> x(3)
ans = 5
Extract the third element

octave:3> x(1:6)
ans =
   3   1   5   7   9   2
Extract the 1st through the 6th elements

octave:4> x(1,5)
ans = 9
% Extract the element in row 1, column 5

octave:5> max(x)
ans = 9
% Extract the largest element

octave:2> min(x)
ans = 1
% Extract the smallest element

octave:7> sum(x)
ans = 33
% Calculates the sum of elements

octave:8> mean(x)
ans = 4.7143
% Calculates the average of elements

octave:9> x(1,4) = 10
x =
    3    1    5   10    9    2    6
%Replace the element in row 1, column 4 with 10

octave:10> x'
ans =

    3
    1
    5
   10
    9
    2
    6
%Transpose of the matrix x


octave:11> sum(x')'
ans = 36

%Transpose of the Sum element of elements in the transpose of x
%Since the sum of elements in the transpose of x gives only one element , its transpose will be the same.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote