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
Plot way forms for the following modulation schemes using Matlab: a)      2 ASK                     b)  BFSK                                  c) BPSK          4 ASK

Background Protein therapeutics are a major component of the biotechnology industry, with sales estimated in the range of ~$99bn annually (2011) and steady market growth. Many phar

An electric overhead traveling crane, consisting of a girder, trolley, and wire rope, is shown in figure. The girder has a flexural rigidity (EI) of 6x10 12 lb.in 2 and a span (L

#question how to solve radicals exponents..


A. Introduction The project consists of two parts. In the first part you are asked to perform some preliminary calculation and plotting, and to write the introduction for your

This problem description is taken from Illingworth and Golosnoy [1]: For physical systems of inhomogeneous composition, di usion is often observed to cause a change of phase, even

#defining matrix using only special commands


The Programming Concept: In most of the programming languages, random function returns a real number; therefore the real number would then have to be rounded to produce a rand