I have an equation. I want to adjust one of the values in the equation until it hits a certain output. How do I run a loop to increment that certain value until it does this?
equation: X/Y=P
Increase Y by an increment of 1 until gives an output equal or less than P.
Example:
X=21
Y=4
P=3
equation: 21/4=5.25
GOAL: increment Y unitl it gives an output less than or equal to P.equation: X/Y=P
Increase Y by an increment of 1 until gives an output equal or less than P.
Example:
X=21
Y=4
P=3
equation: 21/4=5.25
GOAL: increment Y unitl it gives an output less than or equal to P. equation: X/Y=P
Increase Y by an increment of 1 until gives an output equal or less than P.
Example:
X=21
Y=4
P=3
equation: 21/4=5.25
GOAL: increment Y unitl it gives an output less than or equal to P. if loop, for loop, if else, if else statement MATLAB Answers — New Questions