來自https://zhidao.baidu.com/question/2010891127787818868.html
x=normrnd(10,0.1,1,1000); hist(x,50) hold on; plot([10 10], get(gca, 'YLim'), '-r', 'LineWidth', 1) % 在x=10處加一條紅色,寬度為1豎線
%get(gca, 'YLim')返回y軸最大最小值
來自https://zhidao.baidu.com/question/2010891127787818868.html
x=normrnd(10,0.1,1,1000); hist(x,50) hold on; plot([10 10], get(gca, 'YLim'), '-r', 'LineWidth', 1) % 在x=10處加一條紅色,寬度為1豎線
%get(gca, 'YLim')返回y軸最大最小值
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。