How to form a decimal vector for a cell array
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
hello, i have a cell with size 1*1624..now, i want to split these 1624 binary elements into each 8 binary elements ,and then these 8 elements must convert into a decimal number and store in an array..so,my final output must be an array with size 203(bcz 8*203=1624)..can you help me how to do???
댓글 수: 8
Derived from this question:
Jyothi Alugolu
2017년 2월 8일
Jyothi Alugolu
2017년 2월 8일
José-Luis
2017년 2월 8일
Are the "binary elements" characters? If not, what are they?
Jyothi Alugolu
2017년 2월 8일
José-Luis
2017년 2월 8일
Yes but the 0's and 1'1 can be stored as numbers or as characters.
Jan
2017년 2월 8일
@Jyothi: Please post a small example of the input with e.g. 16 elements and the wanted output.
답변 (1개)
adi kul
2017년 2월 8일
Try to use reshape. Here is quick code:
m=1:1624;
n=reshape(m,203,8);
Modify it as per your requirements
댓글 수: 1
Jyothi Alugolu
2017년 2월 8일
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!