MATLAB: Zeros matrix MATLABmatrixzeros I want to create vector of n by n zeros matrix from 1:k. How I can do. Plz help Best Answer Huh?doc zerosMaybe:zeros(n)orzeros(n,n,k) Related SolutionsMATLAB: Building a square matrix out of a vector Hossein, use reshape: A = 1:4*4; n = sqrt(length(A)); % if A is indeed an n*n vector B = reshape(A,n,n) MATLAB: How do you change an entire row or column of an array to a certain value One option:N = 5;X = zeros(N);X(:,3) = rand(N, 1); % Change Column #3 To A Specific VectorX(2,:) = 5*ones(1, N); % Change Row #2 To a Row Of ‘5’ Related QuestionHow to reshape a matrixInitialize a multidimensional matrixHow to preallocate symbolic matrixHow to divide vector to matrix(same row and column)Question?please help me.
Best Answer