Solving Inequalities greater than and smaller than at the same time
Show older comments
Hi All,
I have been trying to solve the following inequalities I mean I'd like to divide the both sides by 10 then get (the left side and right side):
-15<10*S<15
I did the following Matlab Code:
clear all;
close all;
clc;
syms S real;
negative=solve(-15<10*S,S);
positive=solve(10*S<15,S);
numb(:,1)=[negative positive]
Is that possible to get the two possible results from one single line of comand ?, I mean could it possible to write the following equation as it's in Matlab -15<10S<15
Accepted Answer
More Answers (0)
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!