oct2dec
8진수를 10진수로 변환
구문
d = oct2dec(c)
설명
d = oct2dec(c)
는 8진수 행렬 c
를 10진수 행렬 d
로 요소별로 변환합니다. 8진수와 10진수 표현 모두 가장 오른쪽 숫자가 최하위 숫자입니다.
예제
8진수 행렬을 그에 상응하는 10진수 행렬로 변환하기
2×2 8진수 행렬을 그에 상응하는 10진수 행렬로 변환합니다.
d = oct2dec([12 144;0 25])
d = 2×2
10 100
0 21
이기 때문에 8진수 144는 100과 동일합니다.
확장 기능
C/C++ 코드 생성
MATLAB® Coder™를 사용하여 C 코드나 C++ 코드를 생성할 수 있습니다.
버전 내역
R2006a 이전에 개발됨
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)