{"id":8332,"date":"2018-05-24T21:33:05","date_gmt":"2018-05-24T21:33:05","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=8332"},"modified":"2023-01-06T10:11:19","modified_gmt":"2023-01-06T10:11:19","slug":"example-of-eigenvalues-and-eigenvectors-matlab","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/example-of-eigenvalues-and-eigenvectors-matlab\/","title":{"rendered":"Example of Eigenvalues and Eigenvectors MATLAB"},"content":{"rendered":"<blockquote><p><i><span style=\"font-weight: 400;\">We hope that our sample for <\/span><\/i><i>eigenvalues and <\/i><i>eigenvectors<\/i><i> MATLAB<\/i><i><span style=\"font-weight: 400;\"> will help you with your own homework. However, if you have absolutely no time, effort, or desire, then tasks of this kind can&#8217;t be mastered even formally. In this case, AssignmentShark.com offers &#8220;<a href=\"https:\/\/assignmentshark.com\/do-my-math-homework.html\" target=\"_blank\" rel=\"noopener\">do my math homework for me free<\/a>&#8221; help. Consider our service as a helper, because we are here to help you become successful in your study. On our site, you can choose an expert on your own, or we can find the most suitable one for your assignment.<\/span><\/i><\/p>\n<p><i><span style=\"font-weight: 400;\">We have a large team of experts knowledgeable in different spheres of study. Ordering is not difficult \u2013 place your order with the requirements and the deadline and get your assignment done in the shortest possible time. We can <a href=\"https:\/\/assignmentshark.com\/\" target=\"_blank\" rel=\"noopener\">help with assignments<\/a> you if you have difficult moments in your study. We are available 24\/7, so you can contact us any time you want. Read the sample below to find out how our experts complete such assignments.<\/span><\/i><\/p><\/blockquote>\n<p><!--more--><\/p>\n<p><b>Task:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Find the eigenvectors and eigenvalues of the following matrix in MATLAB:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0<a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Matlab3_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8340\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Matlab3_1-300x209.png\" alt=\"\" width=\"300\" height=\"209\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Matlab3_1-300x209.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Matlab3_1.png 301w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/span><\/p>\n<p><b>Solution:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">MATLAB can compute eigenvalues and eigenvectors of a square matrix, either numerically or symbolically.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Numerical eigenvalues and eigenvectors<\/span><\/p>\n<p><span style=\"font-weight: 400;\">(Note: green color marks user input, and blue color is\u00a0MATLAB response.)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">First let\u2019s set matrix:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A = [3 2 4; 2 0 2; 4 2 3]<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">A =<\/span><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">3<\/span><\/td>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<td><span style=\"font-weight: 400;\">4<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">4<\/span><\/td>\n<td><span style=\"font-weight: 400;\">2<\/span><\/td>\n<td><span style=\"font-weight: 400;\">3<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">The \u201ceig\u201d command computes the eigenvalues and eigenvectors:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">[V,D] = eig(A)<\/span><\/p>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">V =<\/span><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">-0.49410<\/span><\/td>\n<td><span style=\"font-weight: 400;\">-0.55805<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0.66667<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">-0.47202<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0.81614<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0.33333<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">0.73011<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0.14998<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0.66667<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">D =<\/span><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\"><span style=\"font-weight: 400;\">Diagonal Matrix<\/span><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">-1.00000<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">-1.00000<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">0<\/span><\/td>\n<td><span style=\"font-weight: 400;\">8.00000<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">The \u201ceig\u201d command returns two matrices. The first contains the eigenvectors as the columns of the matrix, while the second is a diagonal matrix with the eigenvalues on the diagonal. The eigenvectors and eigenvalues are given in the same order.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">We can also call the \u201ceig\u201d command with a single output, in which case only the eigenvalues are returned, and in a vector instead of a matrix:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ev = eig(A)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ev =<\/span><\/p>\n<p><span style=\"font-weight: 400;\">-1.00000<\/span><\/p>\n<p><span style=\"font-weight: 400;\">-1.00000<\/span><\/p>\n<p><span style=\"font-weight: 400;\">8.00000<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Symbolical eigenvalues and eigenvectors<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To obtain symbolic (exact) eigenvalues and eigenvectors, it is only necessary to define the matrix to be symbolic:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8338\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_2-300x154.png\" alt=\"\" width=\"300\" height=\"154\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_2-300x154.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_2.png 651w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">The computation then proceeds exactly as before:<\/span><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8336\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_3-180x300.png\" alt=\"\" width=\"180\" height=\"300\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_3-180x300.png 180w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2018\/05\/Mathlab3_3.png 376w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We hope that our sample for eigenvalues and eigenvectors MATLAB will help you with your own homework. However, if you have absolutely no time, effort, or desire, then tasks of this kind can&#8217;t be mastered even formally. In this case, AssignmentShark.com offers &#8220;do my math homework for me free&#8221; help. Consider our service as a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,35],"tags":[],"class_list":["post-8332","post","type-post","status-publish","format-standard","hentry","category-math","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/8332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/comments?post=8332"}],"version-history":[{"count":11,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/8332\/revisions"}],"predecessor-version":[{"id":13341,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/8332\/revisions\/13341"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=8332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=8332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=8332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}