partc2 - [W I] = (sort(-theta1)); h = [I]; end e for j =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%Iniese Umah clear all; close all; clc; A = rand(50,900); A = vertcat(A,A,A,A); [P D Q] = svds(A,30); B = P*D*transpose(Q); x = A(:,1); syms Z Y K integer Y = 0; for i = 1:length(B); Z(i) = Y + i; theta1(i) = ((dot(B(:,i),x))/(sqrt(sum(B(:,i).^2))*sqrt(sum(x.^2))));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [W I] = (sort(-theta1)); h = [I]; end e for j = 1:8 sprintf('the cosine angle is %d\n from column %d\n\n\n',abs(W(j)),h(j)) end...
View Full Document

This note was uploaded on 09/04/2011 for the course MA 284 taught by Professor Choy during the Spring '11 term at Montgomery College.

Ask a homework question - tutors are online