how write open interval and colse interval by matalb ?
9 views (last 30 days)
Show older comments
work wolf
on 15 Mar 2016
Commented: Walter Roberson
on 3 Sep 2016
how write open interval and colse interval by matalb ? because when write x=0:3 don't give same mean
0 Comments
Accepted Answer
Walter Roberson
on 16 Mar 2016
You need to reach in to the Symbolic engine and use the facilities of MuPAD that are not made available to the MATLAB interface.
For example,
x = evalin(symengine, 'Dom::Interval([0], [3])');
The mean of this certainly would be the same as mean(0:3) and the same as mean(linspace(0,3,50000)) .
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!