MATLAB: Change columns in array to zeros and assign to another vector zero columns hi I have a (n,3) array, I need to make the first and second coulmns zeros, and assign the resulted array to a new one g=(a{1}(:,[1 2])==0); tried this but not work Best Answer n = 10 ; A = rand(n,3) ; % matrix for demo A(:,1:2) = 0 ; % make first two columns zero B = A ; % assign tp B Related SolutionsMATLAB: Minimum for different sized cell arrays To get the overall minima over a cell array without caring what the position is,min( [YourArrayName{:}] ) MATLAB: I have 3*1 matrix in form of cell or string. I have to convert into mat. i have to convert into 3*1*20 mat = cell2mat( reshape(Tcur,1,1,[]) ); Related QuestionError with indexing ‘First argument must be numeric or logical’How to get the intersection points ?Concatenate rows within a 3D cell arrayHow can i find the position of a number in a cell consisting of arrays/matrices with different sizesSelecting first row in cell arrayIndexing for cell arrays
Best Answer