Question: whats wrong with the code? Rank and Nullity My Solutions This activity shall determine the rank and nullity of a matrix. Create a function that

whats wrong with the code?whats wrong with the code? Rank and Nullity My Solutions This activity

Rank and Nullity My Solutions This activity shall determine the rank and nullity of a matrix. Create a function that will be able to solve the following: a. accept the a rectangular array of elements. b. compute the rank c.compute for the nullity of the matrix d. identify the rowspace of A e identify the column space of A. Refer to the discussion item at the MATLAB Discussion handout. [Rank,Nullity.Rowspace. Nullspace] = ranknullity(A) Function Save Reset MATLAB Documentation function (Rank, Nullity, RowSpace, Nullspace) = ranknullity(A) % Calculating the rowspace X by finding the colspace of the transpose of A and transposing it RowSpace = colspace(sym (A.'))."; 4 * Calculating the basis for null space of A Nullspace = null(sym(A)); 9 18 % Calculating the nullity % The size of second column of the nunspace Nullity = size(Nullspace, 2); 11 12 % Calculating the rank of A Rank = rank(A): 13 14 15 end 16 17 Code to call your function Reset 1 [Rank, Nullity, Rowspace, Columnspace)= ranknullity(A) Run Function Output Unrecognized function or variable 'A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!