Projection of Ax on By where norm(x)=norm(y)=1 and A,B are matrices.

1 回表示 (過去 30 日間)
Ahsan Razaq
Ahsan Razaq 2023 年 5 月 17 日
コメント済み: Ahsan Razaq 2023 年 5 月 17 日
I know how to project a vector x on vector y. But I would like to know if there is a function that could help me by projecting on where A and B are matrices and .
In other words, how can I get vectors of norm 1.

回答 (1 件)

Torsten
Torsten 2023 年 5 月 17 日
移動済み: Torsten 2023 年 5 月 17 日
The projection of A*x on B*y is
dot(A*x,B*y)/dot(B*y,B*y)*B*y
I don't know where you want norm = 1 come into play here.
  9 件のコメント
Torsten
Torsten 2023 年 5 月 17 日
編集済み: Torsten 2023 年 5 月 17 日
Npoints = 100;
Ndim = 4; % points in a circle. ergo, easy to plot.
x = randn(Npoints,Ndim); % A normal dist is symmetrical
x = x./sqrt(sum(X.^2,2)); % project to the surface of the Ndim-sphere
x
Ahsan Razaq
Ahsan Razaq 2023 年 5 月 17 日
Good Thanks.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeThermodynamics and Heat Transfer についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by