MATLAB: “length” doesnt work length Hi I have the following problem: >> x = [1 2 3]x = 1 2 3>> length(x)Index exceeds matrix dimensions. ???? Best Answer clear lengthx=[1 2 3]length(x)% Maybe you've used length as a variable Related SolutionsMATLAB: Add zero to make length divisible by 3 id=mod(-numel(A),3)A(end+1:numel(A)+id)=0 MATLAB: Need help for these two commands It is appending (padding) zeros on the end of ADSR so that the total length of x is the length of the signal, sig:length(ADSR)+ (length(sig)-length(ADSR)) Related QuestionJacoabian doesn’t workHow to create a 5D matrix by repeating a 2D array
Best Answer