How to convert the type of an array while keeping the value of all elements? For example, A = [200 150 30] in uint16 to B = [200 150 30] in uint8.

 채택된 답변

KSSV
KSSV 2017년 2월 6일

0 개 추천

A = uint16([200 150 30]) ;
B = uint8(A) ;
class(A)
class(B)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

태그

질문:

Hg
2017년 2월 6일

답변:

2017년 2월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by