function [spec] = cube2mat(data_cube)

[a b c]=size(data_cube);

spec=[];
for k=1:c
    spec_tmp=[];
    for l=1:16
        spec_tmp=[spec_tmp data_cube(l+1,1:end,k)];
    end
    spec=[spec; spec_tmp];
end