Too many output arguments with if condition, and assume

조회 수: 1 (최근 30일)
Ali Tawfik
Ali Tawfik 2019년 8월 25일
댓글: Rik 2019년 8월 25일
Hi
I got that error while I am using if condition with assume, so please any help.
clear all;
close all;
clc;
syms x y;
yin=[(solve(-1500<.2500*x+.7500*y+20.78,y)),(solve(.2500*x+.7500*y+20.78<1500,y))]
% %@x=100
yin2=[-100/3 - 152003/75, 147847/75 - 100/3]
if assume(-2060<y & y<1938)
display('ok')
else
display('nothing')
end
  댓글 수: 5
Ali Tawfik
Ali Tawfik 2019년 8월 25일
Thanks, I know what you wrote, but no way to have kinda of interval inequlaities with syms ?
Thanks,
Rik
Rik 2019년 8월 25일
There probably is, but that is not what your code is doing. And I hardly ever work with syms (and I don't have the toolbox), so you'll have to google that yourself.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by