this project is about matlab
$10-30 USD
Pagado a la entrega
Write a MATLAB function, [lam, v, error] = poweriter(A, v0), to implement the Power
Iteration algorithm in the note to compute the largest eigenvalue (in modulus) of A and
its corresponding eigenvector. In the inputs, A is a real symmetric matrix, v0 is an initial
vector of unit length. In the outputs, lam is the computed eigenvalue, v is the eigenvector,
and error is a vector containing the values kAv
(k)−λ
(k)v
(k)k2 at each step of the algorithm.
Stop the iteration when error(k) ≤ 10−6
.
Test your code on a small problem to make sure it is correct.
2. Write a MATLAB function, [lam, v, error] = inverseiter(A, v0, mu), to implement the
Inverse Iteration algorithm to compute an eigenvalue (closest to mu) of A and its corresponding eigenvector. In the inputs, mu is an initial guess of the eigenvalue. A, v0,
lam, v, error have the same meanings as in Question 1. Also stop the iteration when
error(k) ≤ 10−6
.
Test your code on a small problem.
3. Write a Matlab function, [lam, v, error] = Rayleigh(A, v0), to implement the Rayleigh
Quotient algorithm to compute an eigenvalue of A and its corresponding eigenvector.
Also test your code on a small problem.
4. Generate a 500 × 500 matrix A by
m = 500;
[Q,R] = qr( rand(m) );
Lambda = diag(m:-1:1);
A = Q * Lambda * Q’
Then we know that the eigenvalues of A are m, m − 1, · · · , 1, with corresponding eigenvectors on columns of Q.
(a) Apply on A the functions poweriter, inverseiter, and Rayleigh, respectively, to compute
a pair of eigenvalue and eigenvector. The initial guess vector v0 can be taken as
v0 = ones(m,1). The input mu in inverseiter can be chosen as m − 0.2, such that it
converges to the largest eigenvalue m.
(b) Plot the three error vectors, error, obtained from the three algorithms, respectively,
in the same figure. The x-axis in your graph correspond to the dimension of the error
vector; the y-axis represent the values of error. For the plot, use loglog (log scale in
both x- and y- axes) to catch the behavior of convergence.
From your plot, which algorithm converges the fastest, which is the slowest?
How many iterations does each algorithm take to reach the convergence
Nº del proyecto: #35171353
Sobre el proyecto
Adjudicado a:
Hello, there? This is Eduardo from Australia. I have interested to your proposal. I am good at Matlab. I can help you with the job. Looking forward to hearing from you. Thank you.
11 freelancers están ofertando un promedio de $15 por este trabajo
Hi. How are you? Thanks for giving me an opportunity to bid in your project. I have just read your proposal and I am sure I can complete the project on time. I am a mathematician who has 15 years of experiences in Num Más
This project is my strength and I can fulfill your requirements properly within your given deadline. I always give plagiarism-free work to my clients at very competitive prices. I have more than 10 years of writing Más
I am a supreme writer who has full command over Academic Writing including; SWOT, PESTEL, Porter Five Forces Analysis, 7Ps, summaries, Case Studies, Dissertations/Thesis and Report Writing Projects. I have more than Más
I have read and understood all your project details and I feel my self the best candidate to complete this project with 100% accuracy. I have vast amount of experience in this industry since I am working from 2009 a Más
I have 14 years of experience in the Writing Industry and I can provide you with “SUPREME QUALITY WORK” within your “GIVEN DEADLINE” with “PERFECT GRAMMAR” and “ZERO PLAGIARISM”. I have 1700 + "EXCELLENT REVIEWS" which Más
I am damn sure that I can complete this project beyond your expectations within your given time and budget. I do not believe in charging high rates because I just love to write and fulfill my client’s need. I have c Más
According to your given instructions, I am the BEST CANDIDATE to complete this project. I have read all details in depth, please message me so we can finalize the deal. I am working for the last 6 years as an accomp Más
I am an academic expert who can help you with your solutions like; Case Studies, Summaries, Reports, Thesis & Dissertations, and Online Exams and Courses in almost every language. I am new to this website but I assure Más
I am Minahil Hameed with a vast amount of experience in multiple fields like; Finance & Economics, Accounting & Cost Accounting, Business & Management, and Taxation & Auditing. I have achieved a great amount of success Más
Hello, I am a supreme quality writer who can complete this project easily. You are at the right place, this work is a "Cup of Tea" for me. Look at my reviews page I have more than 100 reviews with excellent ratings Más