Converting cell array to matrix
이전 댓글 표시
I was doing my project on huffman coding on a gray scale image. I have three arrays
- code
- level_of_gray
- length_of_code
>> whos code
Name Size Bytes Class Attributes
code 256x1 33374 cell
>> whos level_of_gray
Name Size Bytes Class Attributes
level_of_gray 256x1 2048 double
>> whos length_of_code
Name Size Bytes Class Attributes
length_of_code 256x1 2048 double
each cell of(code) has characters(strings of 0's and 1's upto length 16)
I want to make a code_dictionary=[level_of_gray;length_of_code;code]
댓글 수: 4
Andrew Newell
2011년 3월 2일
Do you want to leave the codes as character representations of binary numbers?
Manisha Mehra
2011년 3월 2일
Walter Roberson
2011년 3월 2일
You cannot leave the codes in character representation if you want to form a numeric array. Only cell arrays can contain a mix of numbers and characters.
Manisha Mehra
2011년 3월 2일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!