필터 지우기
필터 지우기

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 CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by