converting uint32 to cell

after operating the command
c4 = transpose( [ arrayl{:,4} ] );
in a matrix , c4 returns a columns of numbers (for more, refer to http://www.mathworks.in/matlabcentral/answers/35528-reading-numbers-from-an-unknown-format)
but the output is in uint32 format and i need to get it converted to cell format , suggestions please

 채택된 답변

Walter Roberson
Walter Roberson 2012년 4월 16일

1 개 추천

array1(:,4)
seems to be what you are describing.

추가 답변 (1개)

Jan
Jan 2012년 4월 16일

1 개 추천

This:
[ arrayl{:,4} ]
converts the elements of the 4th column of the cell array1 explicitly to a vector. If you do not want this conversion, omit it:
c4 = transpose(arrayl(:,4));
Or if you want a {Nx1} cell, see Walter's suggestion.

댓글 수: 1

Karan
Karan 2012년 4월 16일
thanx both of you , i was utterly confused with the other columns of the matrix many of differet types , some string some uint32 some text ....

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by