Question

Writing a Matlab function file find the eigenvalues and the corresponding eigenvectors of the matrix B...

Writing a Matlab function file find the eigenvalues and the corresponding eigenvectors of the matrix B = [4 3 7; 1 2 6; 2 0 4].  

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The Matlab function file is given below:

function eigenfun = eigen( B )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
[V,D]=eig(B);
S='The Eigenvalues are :';
disp(S)
D
S='The Eigenvectors are :';
disp(S)
V

end

The main script file is given below:

B=[4 3 7;1 2 6;2 0 4];
eigen(B)

The screenshot with output is given below:

Editor - C:\Users\user\Documents\MATLABleigen.m function eigenfun eigen( B ) %UNTITLED Summary of this function goes here Det

Add a comment
Know the answer?
Add Answer to:
Writing a Matlab function file find the eigenvalues and the corresponding eigenvectors of the matrix B...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT