A matrix A is said to be a normal matrix if A*AT = AT*A where ATis the transpose
ID: 1850346 • Letter: A
Question
A matrix A is said to be a normal matrix ifA*AT = AT*A
where ATis the transpose of A.
Write a Matlab function called isnormal.m which takes as input a matrix A, and outputs the word
normal
if A is a normal matrix, and the phrase
not normal
if A is not a normal matrix. Furthermore, write a Matlab program called main.m which calls this function to check if the following matrices are normal:
Explanation / Answer
a) for file isnormal.m--> function y = isnormal(x) A = x*transpose(x); B = transpose(x)*x; if A==B 'normal' else 'not normal' end b) matrices are not given in question.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.