I have a 32*32 data structure. There are 1*1 structures in each of those 32*32 cells. However, i would like to extract all the binary data in the substructures and align them into one matrix. any one with some code that could help me do this please? Thank you
No products are associated with this question.
If it is a cell array and cells contents have matching sizes:
>> doc cell2mat
Thanks to Azzi and Cedric o was able to get a step forward. however my question now is, i have managed to extract all the binary digits from the structure and they are in a file. i would like to rearrange them into a matrix of 2592*2592. how do i do that? Below is my final code for extracting the binary digits(or bits??)
load('Compressed.mat'); %load compressed data fid = fopen('saved_data.txt','w'); for i = 1:32; for j = 1:32 fwrite(fid,I_runcode(i,j).code); end end fclose(fid);