Question: Please try to do it in microsoft word and send as doc. if possible thanks 3) Deleting a row or a column We can delete



![[] A = 1 2 3 4 5 6 Exercise 1: Restore](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3a8d79f277_50366f3a8d728242.jpg)
3) Deleting a row or a column We can delete a row or a column of a matrix by assigning that row (or column) an empty vector as under: >> A(3,:) = [] A = 1 2 3 4 5 6 Exercise 1: Restore the matrix A in its original form using the current matrix A. 4) Continuation In order to continue writing a command on the next line, we can use three dots (...). For example, consider the definition of Matrix below: >> Matrix - (1/2 2/5 -5/9; ... -3/7-3/8 0.55: 279 -1/2 0.9:1 Matrix- 0.5000 -0.9286 0.2222 0.4000 -0.3750 -0.5000 -0.5556 0.5500 0.9000 Exercise 2: Assume that matrix_1 is defined as shown below: 22 8 12 24 10 14 34 18 6 20 5 16 28 32 17 3 33 42 26 Perform the following operations on this matrix: a. Generate any 2x3 matrix from matrix_1. b. Generate any 4x3 matrix from matrix_1. c. Generate any 3x3 matrix from matrix_1. d. Generate any 4x4 matrix from matrix_1. e. Generate a matrix where the rows of matrix_1 are reversed (the last becomes first and so on) f. Generate a matrix where the columns of matrix_1 are reversed (the last becomes first and so on) g. Delete the second row of matrix_1. h. Add the following row to matrix_1 as the second row: [5 10 15 20 25] i. Delete the last column of matrix_1. j. Add the following column to matrix_1 as the first column: [6 12 18 24) k. Generate a matrix where each element of matrix_1 is multiplied by 5. 1. Generate a matrix where each element of matrix_1 is squared. m. Determine the rank of the matrix A Exercise 3: Let A = (3.6,9), B-[10, 20, 40], C-18, 12), D-[16,28] Create the following matrix by concatenation the above matrices: 1 Generate a matrix where each element of matrix_1 is squared. m. Determine the rank of the matrix A Exercise 3: Let A -[3, 6, 9), B={10, 20, 40], C-18, 12), D-[16, 28] Create the following matrix by concatenation the above matrices: 3 10 8 16 6 20 12 28 9 40 3 10 8 16 6 20 12 28 9 40 Exercise 4: Solve the following set of linear equations: 2x + y + 3z-1 2x + 6y + 8z = 3 6x + 8y + 18z = 5 Exercise 5: Solve the following set of linear equations: 2x + y +2=2 -x+y-2=3 x + 2y +32-10 Exercise 6: Consider the following square matrix: Determine the following: a. Determinant of B b. Inverse of B c. Rank of B d. Eigen Vectors of B V Exercise 7: Consider a signal over the time interval [-10, 10) with an increment period of 0.1, implement the following equations: Xo(t) = te a. b. Xe(t) = [te x(t)= 0,5 * [x(t) + Xe()] Exercise 8: Implement the following equation in MATLAB using operation on matrices: (8) = x,0. + x,, + x202 + .... +x0 where ns. Assume arbitrary values of X, and @ You are not required to use operator "+" to solve this problem. Exercise 1: Write a MATLAB script file that functions as follows: a) The script asks the user to enter a digit greater than or equal to 3 and save it into a variable, num b) It then creates a magic matrix with the size given by num and save it into a variable, mag c) The script calculates the sum of each row of mag and save it into a vector, mag_r d) The script calculates the sum of each column of mag and save it into a vector, mag_c e) The script also computes the sum of all elements of the matrix mag and save it into variable, mag_s It then calculates the sum of each diagonal of mag and save it in variables, mag di and mag_d2 g) The script then prints all these variables on screen. Exercise 2: Write a MATLAB script that functions as follows: h) It takes from user two input numbers and saves these into a variables, rows and cols i) It also asks the user to provide any number from 1 to 100, and saves it in a variable, number j) It generates a matrix of random floating-point numbers, rand_matrix, with dimension rows x cols by making sure that the elements of the matrix are between 0 and number a) The script should have a command to count number of elements of the matrix that are greater than or equal to number/2 k) Write a set of commands that generate another matrix, larger_rand_matrix that should have most of the elements greater than or equal to number/2 1) Write a set of commands that generate another matrix, smaller_rand_matrix that should have most of the elements smaller than number/2 b) Compare the output of step d, e and f c) Floor the rand matrix and save it in another matrix, floor_rand_matrix d) Ceil the rand_matrix and save it in another matrix, ceil_rand_matrix m) Write a command that generates a matrix of random set of integers between 0 and number with dimension rows x cols e) Display all variables on screen in a neat way
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
