Could anyone help me to solve the following condition.

1 view (last 30 days)
I have three expressions of which two expressions need to satisfy certain conditions;
expression 1
C=A+B; A<B,C>B
expresion 2
D=B+C;B<C,D>C
expression 3
E=C
I am having the values of E=[20 40 60 80 100]
when E=20 how to generate the values of A,B,C and D with respect to the conditions given in expression 1 and 2.
Could anyone please help me on this.
  5 Comments
jaah navi
jaah navi on 12 Apr 2019
The value of C is known,where C=[5 10 15 20]
The sum of A and B should be equal to C ,under the condition A<B
Say for example if C=5 the possiblity of A and B will be 2 and 3 or 1 and 4 (all should be of positive,should not be equal)
Among the two possiblity any one can be used.
if C=10,the possiblilty of A and B will be 4 and 6,3 and 7,2 and 8,1and 9.
Among the four possibilities any one can be obtained .

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!