how to display ranges of numbers

2 views (last 30 days)
I have a script like:
alpha_x = sqrt (x1-x2) / 6;
beta_x = log (x2 + x1) / 7;
epsilon_x = mean (alpha, beta);
how do i view : alpha_x < x < beta_x?
calculating the values is not a problem, I should just display the range of values, I have to display a value between the other two.
Can anyone help me?
thankssss
  2 Comments
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA on 7 Mar 2022
alpha_x and beta_x are numbers .. I would just like to display for example
3 <x x <7

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 7 Mar 2022
fprintf('%g < x < %g\n', alpha, beta) ;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!