フィルターのクリア

How to change the number of digits over 15.

4 ビュー (過去 30 日間)
Lazaros Moysis
Lazaros Moysis 2012 年 11 月 27 日
Hello! Can anyone help me with the number of digits? I need to set it over 15, around 40 or so. I know the vpa command can help but i cannot unerstand it that well. Is there any way to set the number to 40 for all operations in the workplace. Thank you very much

採用された回答

Matt Fig
Matt Fig 2012 年 11 月 27 日
編集済み: Matt Fig 2012 年 11 月 27 日
digits = 40; % Only works if you have the symbolic toolbox
But this only applies to symbolic variables. You cannot get more than 16 or so digits out of double values by definition.
N = 10/3;
isa(N,'double') % Yes, N is a double.
Ns = vpa(N)
isa(Ns,'sym') % Yes, Ns is a sym.

その他の回答 (1 件)

Lazaros Moysis
Lazaros Moysis 2012 年 11 月 27 日
Ok i get it, thank you very much

カテゴリ

Help Center および File ExchangeNumbers and Precision についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by