Size Convert

버전 1.0.0.0 (1.88 KB) 작성자: Skynet
Convert size from bytes to larger units of size as relevant.
다운로드 수: 1.4K
업데이트 날짜: 2005/4/25

라이선스 보기

SIZECONVERT(SIZES,ROUNDING) converts a numerical matrix containing sizes in bytes to larger units of size as relevant. The output is a cell with the first column containing the converted sizes and the second column containing the abbreviated converted units.

By default, the converted sizes are rounded to the nearest integer for readability, although this can be disabled.

Examples:

sizeconvert([534 1019 1047 16854 1724416 189340868 403296067584])
returns {534,'B';1019,'B';1,'KB';16,'KB';2,'MB';181,'MB';376,'GB'}

sizeconvert([437,5457, 4534405],0)
returns {437,'B';5.3291,'KB';4.3243,'MB'}

See code or type 'help sizeconvert' for full usage details.

[Please subscribe to this file if you use it, so you can be notified of updates.]

인용 양식

Skynet (2024). Size Convert (https://www.mathworks.com/matlabcentral/fileexchange/7425-size-convert), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Type Conversion에 대해 자세히 알아보기
도움

줌: Perform zero-padding

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Made minor updates to description and comments.