The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Intersect solutions
Replies: 1   Last Post: Jan 27, 2014 2:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 14
Registered: 12/18/13
Intersect solutions
Posted: Jan 26, 2014 6:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I need to build a script in which i have to calculate the intersect solutions for some equations.

For example:

18 - Kp > 0
6Kp + 72 > 0

In matlab code:

>> syms kp
>> solve('18-kp>0')

ans =

Dom::Interval(-Inf, 18)
>> solve('6*kp+72>0')
ans =

Dom::Interval(-12, Inf)

I know that the intersect of the solution is (-12, 18) but how do i write in matlab?
Can i take the boundary of the intervals? For example:
max (-inf,-12) = -12
min (18, inf) = 18
so the intersection will be (-12, 18)
Thank you!

Date Subject Author
Read Intersect solutions
Read Re: Intersect solutions
Steven Lord

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.