MATLAB: Flip elements of a row vector programming a=[]1 2 3] iwant b=[3 2 1] this is an example i want for a general row vector Best Answer a = [1 2 3] fliplr(a)ora(end:-1:1) Related SolutionsMATLAB: Reverse of row in matlab Use the flip function: https://www.mathworks.com/help/matlab/ref/flip.html?s_tid=doc_ta MATLAB: Problem with simple “flip” function The function isn't flip; they're separate functions fliplr and flipud for row/column vectors in particular. Related QuestionRe-arrange vectors from rows to columnsHow can i flip a (M x N) matrix to (N x M)Flip-Flop simulationCreating a symmetric matrix from a single column vectorRearrange matrix into single rowHow to flip a row vector without using flip(lr) function
Best Answer