emptyIndex = cellfun(@isempty,y_werte); %# Find indices of empty cells
y_werte(emptyIndex) = {0}; %# Fill empty cells with 0
mylogicalarray = cell2mat(y_werte); %# Convert the cell array
so hab ichs gemacht....
vielleicht findet aber jemand ne schönere Lösung!
LG Basti
↧