MATLAB: Create vector that consists only of zeroes

create new vectorlenght vectorzeroes

hi,
I tried to create a vector that consists only of zeroes and tried the following:
error=zeroes(length(data13(:,1)))
but it didn't work. my goal is it, that the lenght of the error vector/ the number of elements in the vecotr is the same as in column one of the matrix data13

Best Answer

err = zeros(size(data13,1), 1) ;
but don't call it "error" as it is the name of a function.
Related Question