I wonder if it's possible to add rows of a matrix one at a time with a for loop? Example, if i initialize a blank matrix:
and i have some dummy samples:
sample1 = [1 2 3];
sample2 = [4 5 6];
and i want to do something like:
mat(i,:) = sample1;
so i would get:
as the output. The idea is that what if i can't predefine the size of the matrix beforehand and that I'm not entirely sure how many sample will be there until the process ends? Is it possible in matlab?