how write open interval and colse interval by matalb ?
조회 수: 9 (최근 30일)
이전 댓글 표시
how write open interval and colse interval by matalb ? because when write x=0:3 don't give same mean
댓글 수: 0
채택된 답변
Walter Roberson
2016년 3월 16일
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)) .
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!