Meaning of unit vector
46 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
miichaela1
am 25 Jun. 2017
Kommentiert: Erfan Hosseini
am 6 Okt. 2021
I've been trying to solve this problem, and I understand the programming part of it. However, I don't understand what it means to start from "the unit vector". Could someone please explain what vector the unit vector is referred to?
Generate the Hilbert matrix A of order n=6 and apply 4 iterations of the inverse power method in order to compute an approximation of the eigenvalue \lambda_p that is the closest to p=0.2, starting from the unit vector. Then, use the command eigs to compute the reference ''exact'' value.
0 Kommentare
Akzeptierte Antwort
James Tursa
am 25 Jun. 2017
Bearbeitet: James Tursa
am 25 Jun. 2017
A unit vector is any vector v such that norm(v) = 1. For your case of order n=6, you want a 6 element vector v with norm(v) = 1. Some examples of 6-element unit vectors:
v = [1;0;0;0;0;0]
or
v = [1;1;1;1;1;1]; v = v/norm(v);
or
v = rand(6,1); v = v/norm(v);
Any one of these could be used as a suitable starting vector for your problem.
0 Kommentare
Weitere Antworten (1)
shahd khalid
am 3 Apr. 2020
how to find the absolute of value
1 Kommentar
Erfan Hosseini
am 6 Okt. 2021
U can use the below function:
abs(x);
x is the variable u wanna find its absolute value
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!