Standard Unit of Matlab

조회 수: 4 (최근 30일)
Tae Yeong Kim
Tae Yeong Kim 2013년 2월 17일
I am trying to figure out the standard units of Matlab, for instance if I code mass=10, would the Matlab incorporate this as 10 kilgograms or grams?
Also, how would you put gravity into Matlab.
The only way to convert units that I figured out was to download the master m.files from the web and use it. However, is there another way such that I do not need other extra files?
  댓글 수: 3
Tae Yeong Kim
Tae Yeong Kim 2013년 2월 17일
yup, I am trying to convert my units, not using mfiles from other sources.
Jan
Jan 2013년 2월 17일
What are "the master m.files"?

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2013년 2월 17일
It is a general feature of numerical software not to assume any specific units. For the computing it does not matter, if you add seconds, meters or dollars. This has the enormous advantage, that e.g. the same optimization routine can be applied to different fields as energy consumption of an engine or predator/prey systems in biology.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2013년 2월 17일
MATLAB has no inherent notion of units (other approximations for screen displays). Whether 10 would be kilograms or grams or pounds or slugs would depend entirely on the program.
I think there are some contributions in the File Exchange for dealing with units.

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by