Fliplr function - changing dimensions, MATLAB in Mathematics

Fliplr function:

The fliplr function "flips" the matrix from left to right (in another words the left-most column, the first column, become the last column and so on), and the flipud functions flips up to down. Note that in these illustrations mat is unchanged; rather than, the results are stored in the default variable ans each time.

34_Fliplr function.png

The rot90 function rotates the matrix counter clockwise 90 degrees, therefore for illustration the value in the top-right corner becomes rather than the top-left corner and the last column becomes the first row:

>> mat

mat =

14 61  2 94

21 28 75 47

20 20 45 42

>> rot90(mat)

ans =

94   47   42

2    75   45

61   28   20

14   21   20

Posted Date: 10/18/2012 4:32:09 AM | Location : United States

Related Discussions:- Fliplr function - changing dimensions, Assignment Help, Ask Question on Fliplr function - changing dimensions, Get Answer, Expert's Help, Fliplr function - changing dimensions Discussions

Write discussion on Fliplr function - changing dimensions
Your posts are moderated
Related Questions
Illustration of Empty vectors: The Empty vectors can also be used to delete elements from the arrays. For illustration, to remove the third element from array, an empty vector

Illustration of Labels and prompts: The program below prompts the user for endpoints (x1, y1) and (x2, y2) of a line segment, and computes the midpoint of the line segment, th

Script a MATLAB program which meets the following speci cations: The program expects an input of a two-variable real-valued continuous function f : R^2--> R The program is to cal

Example of Recursive functions: This definition is recursive as a factorial is defined in terms of the other factorial. There are two parts to any recursive definition: the co

Illustration of Writing to files: Here is the other illustration in which a matrix is written to a file. At First, an arbitrary 2 × 4 matrix is generated, and then it is writt

Give the formula for a rational function that has a hole at x=7 & vertical asmptote at x=-3/2

Find Minimum and Maximum for each row To find the maximum (or minimum) for each row, the dimension of 2 (that is how a MATLAB refers to rows) can be identified as the third arg

Error-Checking for Integers: As MATLAB uses the type double by default for all the values, to check to make confirm that the user has entered an integer, the program have to c

Write a MATLAB function [d1, u1, l1, c1, r1] = NaiveGaussArrow(d, u, l, c, r) that takes as input the 5 vectors de ned above representing A. This function performs Naive Gauss redu

Example of Logical built-in functions: For equivalent to all the function, we should make sure that the entire elements in the vector are logically true. The one way of doing