Solving Inequalities greater than and smaller than at the same time
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!