Help projecting a vector onto another!
Ältere Kommentare anzeigen
Write a Matlab function projectUV(), that is, function [w] = projectUV(u,v) which computes a projection vector of u on v thus performing the operation projv = u v u v v Test the function by computing the projection of vector u = (1, 2, 3) onto v = (1, 1, 0).
Antworten (2)
Roger Stafford
am 25 Mai 2016
dot(u,v)/dot(v,v)*v;
Todd Leonhardt
am 25 Mai 2016
1 Stimme
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!