필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matlab online cannot save values smaller than 10^-20

조회 수: 1 (최근 30일)
Neil Foxman
Neil Foxman 2019년 11월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
I am trying to use the Boltzman constant (k = 1.38e-23) in an equation, but I keep finding that I am unable to use a variable of this size when saving it. Through guess and check, it seems like matlab cannot save variables smaller than 10^-21 or so.
I am not trying to do any math on this variable yet, just save it, and it seems like an error is still occuring as you can see in the screenshot below (see variable k has a different value than the one I assigned).
Capture.PNG
I have looked at the links below but they all seem to suggest that Matlab should be able to handle numbers of this size:
I am using Matlab online, could this be the issue? Or is there some hidden setting that changes the number of bits used?
  댓글 수: 1
the cyclist
the cyclist 2019년 11월 26일
I got
k = 1.38e-23
k =
1.3800e-23
both online and locally.

답변 (1개)

Neil Foxman
Neil Foxman 2019년 11월 26일
I tried it out on another computer and I was able to get the correct response. However, this doesn't solve the issue. Do you know what setting could be causing this discrepancy?

이 질문은 마감되었습니다.

커뮤니티

더 많은 답변 보기:  원격 교육 커뮤니티

Community Treasure Hunt

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

Start Hunting!

Translated by