Question: help with Matlab please! clear all close all %% This script is designed to practice MATLAB coding for BME311 lab curriculum. %% Do not use



help with Matlab please!
clear all close all %% This script is designed to practice MATLAB coding for BME311 lab curriculum. %% Do not use without permission or duplicate for other purpose than BME311. %% Author: Ga-Young Kelly Suh %% Vector definition v_a = [1; 3; 7); v_b = [4; 0; 2); %% Matrix definition M_A = [8 11 2 8; 0 -7 2 -1; -3 -7 2 1; 1 1 2 4]; M_B = [1 -2 0 5; 0 7 1 5; 0 4 4 0; 0 0 0 2]; M_C = (-1 -2 2; 2 1 1; 3 4 5]; %% Practice 3.1 %%%% Find the determinant (M_B_det) of M_B. %% Practice 3.2 %%%% Find the eigenvalue (lambda_M_B) and eigenvectors (v_M_B) of M_B. %%%% function hint: eig %% Practice 3.3 %%%% Test this eigenvalue and eigenvector. Pick the second column of v_M_B, %%%% and second eigenvalue from lambda_M_B. Is M_B * eigenvector same with *%*% eigenvalue * eigenvector? %% Practice 3.4 %%%% Find the inverse matrix of M_C, and name as M_C_inv $%%% Find the transpose matrix of M_C, and name as M_C_trans %%%% Please write a script using 'if' judging if M_C is an orthogonal matrix or not %%%% using M_C_inv and M_C_trans 3% Practice (optional) %%%% Find the eigenvalue and eigenvector for the matrix A_test. %%%% Show the result of eigenvalue * eigenvector, for each pair. A_test = [640 48; 0 100 0 ; 48 0 36]; % lambda1*v1 % lambda 2*V2 % lambda3*v3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
