how to perform pinv with symbolic values without loosing precision comes from vpa function?

1 回表示 (過去 30 日間)
R =
[4157066.11113704969163796320578974731594179835134484
671429.665455965103663684268506862702153063263269903
4774879.36997573773279084890656259223520006856252447]
% R 3x1 112 sym
R=R_new
J=
[ -0.36997573773279084890656259223520006856252447
0.665455965103663684268506862702153063263269903
0.36997573773279084890656259223520006856252447]
R_new=vpa(R- (pinv(J'*J)))
%it gives error because J is a symbolic, how can I perform pinv(J'*J) without loosing precision
%I tried R_new=vpa(R- (pinv(double(J'*J)))) but double conversion loses precision of J'*J

採用された回答

Walter Roberson
Walter Roberson 2014 年 3 月 2 日
Which MATLAB version are you using? The current release can do pinv() of a symbolic matrix; see http://www.mathworks.com/help/symbolic/pinv.html
  2 件のコメント
sermet
sermet 2014 年 3 月 2 日
R 2012a 7.14 0739
sermet
sermet 2014 年 3 月 2 日
is there anyway to perform pinv to fit above codes?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by