Info
この質問は閉じられています。 編集または回答するには再度開いてください。
What happened to the errorbar function in R2014b?
2 ビュー (過去 30 日間)
古いコメントを表示
As far as I can tell both the ERRORBAR function and its documentation are identical in R2014a and R2014b. The beahviour, however, is drastically different. Consider:
errorbar(1:5, ones(1, 5), -2:2, zeros(1, 5))
In R2014a you get
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147051/image.png)
while in R2014b you get
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147052/image.png)
Both errorbars have length L(i)+U(i) like the documentation says and I am not sure what a negative distance below a point means, but I wasn't expecting the change. Did TMW tell us about this? Is this a bug or a bug fix? Is it documented?
0 件のコメント
回答 (1 件)
Scott Webster
2015 年 2 月 6 日
It looks like maybe this was a bug before, and that now it has been fixed in R2014b? If a negative error bar is drawn in the opposite direction then the new behaviour seems correct. I could see an argument for not allowing negative values, but taking the absolute value as seems to have been the previous method could mask errors in code?
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!