From the following code, I want to generate a matrix from the colon operator through a for-loop and have starting and ending values given in ends(20x2 double) where 1st and 2nd column of ends is the starting and ending values respectively.
for hh=1:length(ends)
xx{:,hh}=ends(hh,1)-1:ends(hh,2)+1;
end
and it is giving me the following error message
Expected one output from a curly brace or dot indexing expression, but there were 0 results.
Error in new_one (line 11)
xx{:,hh}=ends(hh,1)-1:ends(hh,2)+1;