zeros of a matrix
조회 수: 2(최근 30일)
Walter Roberson 2022년 12월 1일
You have accidentally created a variable with the name rand or the name size or the name zeros
Also, to create a column of zeros you should be using
A = zeros(1, size(M,2));
the cyclist 2022년 12월 1일
The code you have posted here runs without error.
My best guess here is that you have a variable in your workspace that has the same name as one of these functions: rand, zeros, or size.
I suggest you clear your workspace, rename any variables that have the same name as a MATLAB function, and try again.