Illustration to logical function , MATLAB Programming

Illustration to logical function:

In addition to such logical operators, the MATLAB also has a function xor, that is the exclusive or function. It returns the logical true if one of the arguments is true. For illustration, in the subsequent only the first argument is true,therefore the answer is true:

>> xor(3 < 5, 'a' >  'c')

ans =

1

In this illustration, both the arguments are true therefore the result is false:

>> xor (3 < 5, 'a' < 'c')

ans =

0

Given that the logical values of true and false in variables x & y, the truth table shown below explains how the logical operators work for all the combinations. Keep in mind that the logical operators are commutative (example, x || y is similar as y || x).

742_logical operators1.png

Posted Date: 10/18/2012 7:36:52 AM | Location : United States







Related Discussions:- Illustration to logical function , Assignment Help, Ask Question on Illustration to logical function , Get Answer, Expert's Help, Illustration to logical function Discussions

Write discussion on Illustration to logical function
Your posts are moderated
Related Questions

i want to save the values of a particular equation in a for loop.. for ex: for i=1:100 et=(x+yz); end thus how can i store the values of et at each iteration

Find f(t) for each F(s): Problem: Based on an examination given to a large class in which the maximum score is 100 points, assuming that 20 grades taken at random f

A band pass FIR filter is required to pass frequencies from 5KHz to 8KHz, using a sample rate of 40K i) Explain how this would map to normalization sampling frequencies in radia

the cost t in hundreds of dollars of tuition and fees at many community college can be approximated by t=1/2c+5 where c is the number of credits for which a student registers. ( 2

Problem 1. Create a vector representing x coordinates of a measurement with 20 points between 0 and 10. Create another vector y representing fake measurements which are related to

how to implement 3 out of 4 visual cryptography?

why after i crop part of a tiff image the cropped image is of different pixel resolution

Your functions will allow you to create the following graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and t

From A to B the inlet valve is open and the steam pressure increases linearly from 0.1000 MPa absolute to 15.00 MPa absolute, 1000°C. The inlet valve closes and from B to C the