MATLAB: Assignment has more non-singleton rhs dimensions than non-singleton subscripts

assignment has more non-singleton rhs dimensions than non-singleton subscripts error in xlsheader (line 14) idx(ijj) = find(not(cellfun('isempty'MATLABtxt(i

Why do i keep on getting this error code? The code executes well and the matrix gets populated with the right elements. It does what it supposed to but at the end spits out the error code.
filename = 'testGUI';
[num txt raw] = xlsread(filename,2);
%
clc
sz = size(txt)
row = sz(1);
column = sz(2);
for i = 1 : row
for j = 1 : column
idx(i,j) = find(not(cellfun('isempty', txt(i,j))))
end
end

Best Answer

Thank you very much! that worked great!