The assert() command should say: assert(isequal(matrixmanipulation(A),y_correct));
@William, the incorrect function template and test suite has been corrected.
@Tesfaye, if you are unsure at any point while submitting a question, kindly look at how other questions have been framed.
Which doors are open?
Detect a number and replace with two NaN's
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
Edges of a n-dimensional Hypercube
Dots in a Circle
find a matrix D that contains the eigenvalues of A on its diagonal.
Create a simple inline function y and compute its value at x = pi.
Calculate the structural rank of a 2-by-4 matrix.
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office