how write open interval and colse interval by matalb ?

3 ビュー (過去 30 日間)
work wolf
work wolf 2016 年 3 月 15 日
コメント済み: Walter Roberson 2016 年 9 月 3 日
how write open interval and colse interval by matalb ? because when write x=0:3 don't give same mean

採用された回答

Walter Roberson
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)) .
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 9 月 3 日
work wolf commented
efficient

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by