Inequation in Matlab
Inequation in Matlab
(OP)
Is it possible to solve inequation in Matlab? I mean, like this:
x + 3 < 2
Is this possible and if it is, how to do it?
x + 3 < 2
Is this possible and if it is, how to do it?
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS Come Join Us!Are you an
Engineering professional? Join Eng-Tips Forums!
*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting GuidelinesJobs |
|
RE: Inequation in Matlab
TTFN
RE: Inequation in Matlab
If you know how to find the answer from help, please tell me. Because English is not my first language and finding appropriate phrases can be sometimes difficult.
RE: Inequation in Matlab
jsolar
RE: Inequation in Matlab
RE: Inequation in Matlab
>> help >
Operators and special characters.
Arithmetic operators.
plus - Plus +
uplus - Unary plus +
minus - Minus -
uminus - Unary minus -
mtimes - Matrix multiply *
times - Array multiply .*
mpower - Matrix power ^
power - Array power .^
mldivide - Backslash or left matrix divide \
mrdivide - Slash or right matrix divide /
ldivide - Left array divide .\
rdivide - Right array divide ./
kron - Kronecker tensor product kron
Relational operators.
eq - Equal ==
ne - Not equal ~=
lt - Less than <
gt - Greater than >
le - Less than or equal <=
ge - Greater than or equal >=
Logical operators.
Short-circuit logical AND &&
Short-circuit logical OR ||
and - Element-wise logical AND &
or - Element-wise logical OR |
not - Logical NOT ~
xor - Logical EXCLUSIVE OR
any - True if any element of vector is nonzero
all - True if all elements of vector are nonzero
Special characters.
colon - Colon :
paren - Parentheses and subscripting ( )
paren - Brackets [ ]
paren - Braces and subscripting { }
punct - Function handle creation @
punct - Decimal point .
punct - Structure field access .
punct - Parent directory ..
punct - Continuation ...
punct - Separator ,
punct - Semicolon ;
punct - Comment %
punct - Invoke operating system command !
punct - Assignment =
punct - Quote '
transpose - Transpose .'
ctranspose - Complex conjugate transpose '
horzcat - Horizontal concatenation [,]
vertcat - Vertical concatenation [;]
subsasgn - Subscripted assignment ( ),{ },.
subsref - Subscripted reference ( ),{ },.
subsindex - Subscript index
Bitwise operators.
bitand - Bit-wise AND.
bitcmp - Complement bits.
bitor - Bit-wise OR.
bitmax - Maximum floating point integer.
bitxor - Bit-wise XOR.
bitset - Set bit.
bitget - Get bit.
bitshift - Bit-wise shift.
Set operators.
union - Set union.
unique - Set unique.
intersect - Set intersection.
setdiff - Set difference.
setxor - Set exclusive-or.
ismember - True for set member.
See also arith, relop, slash, function_handle.
jsolar
RE: Inequation in Matlab
y = x + 1
y1 = x + 3
y < y1
Can Matlab find solutions here? This is my problem. And I've got the error that "it is not working with syms variables"
RE: Inequation in Matlab
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: Inequation in Matlab
Is this for a class? I'm finding it hard to believe that at computer professional can't answer this question.
TTFN
RE: Inequation in Matlab
The first statement says that the inequality holds for all values of x. The second says for none.
maple( 'y1:=x+1: y3:=x+3: solve(y1<y3,x)' )
ans =
x
>> maple( 'y1:=x+1: y3:=x+3: solve(y1>y3,x)' )
ans =
''
jsolar
RE: Inequation in Matlab
God bless you and a warm greeting from Slovenia,
Frenky