MATLAB: Simple operations operationsvector Hi, I'm seeking the way to erase repeated value into vector, like this: a = [0 0 1 2 2 2 7];b = something(a);b = [0 1 2 7] thx Best Answer a = [0 0 1 2 2 2 7];b = unique(a);b = [0 1 2 7] Related SolutionsMATLAB: Simple Matlab Operation READ http://matlab.wikia.com/wiki/FAQVar4 = num2cell([1 2 3])[Var1, Var2, Var3]=Var4{:};BUT it's don't useful MATLAB: How to create permutations of multisets Try thisx = [0 0 1 1 2 2];M = unique(perms(x), 'rows'); Related QuestionA simple matrix operationHow to sum every elements that have the same frequencySimple operation with vectorsShaping a vector.Simple operations with structChanging numbers in a matrix with new numbersVector operations
Best Answer