Please help! How to express p as the projection of b onto the Col A according to the theory. I know that the component of b orthogonal to ColA is z=b-p(accodfing to the theory )

3 次查看(过去 30 天)
function [p,z]=proj(A,b)
format
A=shrink(A);
m=size(A,1);
p=[];
z=[];
boolean = true
if ~isequal(size(A,1),size(b,1))
disp("No solution: dimensions of A and b disagree")
display(p)
display(z)
return;
end
y=[A,b];
if ~isequal(rank(y),size(y,2))
disp('b is in Col A')
p=???
z=b-p
return;
end
  5 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by