Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: Union of solutions
Replies: 2   Last Post: Jan 24, 2014 1:42 PM

Advanced Search

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

Posts: 14
Registered: 12/18/13
Union of solutions
Posted: Jan 24, 2014 1:00 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I need to build a script in which i have to calculate the union 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 union of the solution is (-12, 18) but how do i write in matlab? Thank you!



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.