Operators, MATLAB Programming


There are in general two types of operators: unary operators that operate on a single value or operand; and binary operators, that operate on two values or operands. The symbol "-", for illustration, is both the unary operator for negation and the binary operator for subtraction.

Here are some of the general operators which can be used with numeric expressions:

+ addition

- negation, subtraction

* multiplication

/ division (divided by e.g. 10/5 is 2)

\ division (divided into e.g. 5\10 is 2)

^ exponentiation (e.g., 5^2 is 25)



Posted Date: 10/18/2012 3:31:56 AM | Location : United States

Related Discussions:- Operators, Assignment Help, Ask Question on Operators, Get Answer, Expert's Help, Operators Discussions

Write discussion on Operators
Your posts are moderated
Related Questions
Mathematical operation: For numerical operands, the use of such operators is clear-cut. For illustration, 3 >> 3 ans = 1 >> 9 ans = 0 Though, in the Wo

Objectives In the following exercises, students are required ?rstly to implement code to determine the frequency components present in a signal, and then to extract a desired si

Implement a MatLab function to calculate y.  The function should take two input arguments 1) A vector of parameters In the above example this would be of length 3, the first

please show me how this is coded in MATLAB

Illustration  of assignment statements: At that point, if the expression mynum 3 is entered, the default variable ans is used as the result of this expression is not assigned

#question.i want to know the number of pixels related to the actual phase value and want to separate the zero phase valued pixels from the image..

A fence enclosure consists of a rectangle of length L and width 2 R , and a semicircle of radius R , as shown in Figure 1. The enclosure is to be built to have an area of 1600 m

An environmental consulting firm is conducting a site investigation on an abandoned industrial site that is 200 m by 150 m in size (Fig. 1). A number of piezometers were installed

Illustration of Modifying Elements: Illustration, the fifth element in the vector newvec is 9 >> newvec(5) ans = 9 The subset of a vector, that would be a vector it