Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to form a decimal vector for a cell array
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
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 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!