Please use Matlab • Algorithm needs to work for any N by N square matrix, use the variable N. • For computations needing

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please use Matlab • Algorithm needs to work for any N by N square matrix, use the variable N. • For computations needing

Post by answerhappygod »

Please Use Matlab Algorithm Needs To Work For Any N By N Square Matrix Use The Variable N For Computations Needing 1
Please Use Matlab Algorithm Needs To Work For Any N By N Square Matrix Use The Variable N For Computations Needing 1 (142.72 KiB) Viewed 24 times
Please use Matlab • Algorithm needs to work for any N by N square matrix, use the variable N. • For computations needing numerical tolerance use the variable tolerance = sqrt(eps) or tolerance = np.finfo(float).eps • Use format long command to display all available digits 1. Generate Random Matrices with Specified Eigenvalues (a) (5 pts) Generate a random symmetric trix, with eigenvalues {1,2, ...,N}. Use the similarity relation Α = QΛQ* = х N}. 1 where Q is a random unitary (N < N) matrix, and A a diagonal matrix with the eigenvalues on the diagonal. VERIFY, using a library call (Matlab / Python / R / ???) that your matrices indeed have the desired eigenvalues. SUBMIT: Code, and verification (output) for N= 20. (b) (5 pts) Generate a random non-symmetric matrix, with eigenvalues {1,2,. Use the similarity relation A=QTQ* where Q is a random unitary (N XN) matrix, and T a triangular matrix with the eigenvalues on the diagonal, and non-zeros in the upper triangular part. VER- IFY, using a library call (Matlab / Python / R / ???) that your matrices indeed have the desired eigenvalues. SUBMIT: Code, and verification (output) for N= 20. = Х
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply