MATLAB: Delete zero values in works pace variable delete valuework space variable Hi, How to delete zero values in the workspace variable and save the updated value (without zero) into another variable? Great Thanks Best Answer a=[1 2 3 0 4 5 0 6 7]a = 1 2 3 0 4 5 0 6 7>> a=a(a>0)a = 1 2 3 4 5 6 7 Related SolutionsMATLAB: Deleting number [C1,ic] = setdiff(A,B)[i1,i1] = sort(ic)C = C1(i1)ORC = A(~ismember(A,B)) MATLAB: Deleted questions The current question ID is 32421 and the number of existing questions is 28586. It seems like 3835 questions have been deleted. The rate of 12% is higher than I expect. Related QuestionDelete rows from matrixDelete duplicated row in a matrix
Best Answer