Operators, MATLAB Programming

Operators:

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
what are data collect this topic,how i can create algorithm in mat lab what language support easy to this topic


Order of precedence: As with the numerical operators, it is significant to know that the operator precedence rules. Table below shows the rules for the operators which  have b

using newton divided diference formula find f(15) and f (8)

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

You are a quant analyst reporting directly to a portfolio manager. Your manager requires you to generate a simple code to compute several statistics for the following potential por

Use Taylor series to derive the form of the truncation error of the approximation Suppose f € C3. Given that the roundo error has the similar form as in the Forward D

In this lab, we implement vectors, script and functions with plot. Plot function is used to plot the point into graph. These plots are handled by handle (h).  These handle is used


clear clc %% DATA INPUT filename = input('Enter file name, including its extension: ', 's'); D = load(filename); %or load('Mphi.out'); %% %Trendline %Evaluates