Convert symbolic solution into real number?

6 ビュー (過去 30 日間)
Dexter
Dexter 2011 年 7 月 17 日
syms ysol;
POI_mat = solve( 'ab1(1)*ysol^2 + ab1(2)*ysol +ab1(3) = ab2(1)*ysol +ab2(2)' );
I would like to convert my solution within POI_mat into a real number so I can use it to compute a point of intersection. Right now it returns only symbolic solutions, how can I convert this?

回答 (1 件)

Paulo Silva
Paulo Silva 2011 年 7 月 17 日
double(POI_mat)
or
vpa(POI_mat)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by