7
A
回答
3
我會建議使用histc與日誌的邊緣和barplot
help histc
-- Function File: N = histc (Y, EDGES)
matlab> edges=log(1:100:1000);
matlab> h=histc(x,edges)
matlab> bar(1:100:1000, h)
3
據我所知,這不是可以作爲一個本地MATLAB函數:
http://www.mathworks.com/support/solutions/en/data/1-2ZUTKK/?solution=1-2ZUTKK
但是,這篇文章還解釋幾個workarrounds。
6
嘗試使用set(gca, 'Xscale', 'log')
來繪製X軸上的日誌。它爲我工作我使用7.12.0或2011a。檢查axis reference尋求更多幫助。
0
嘗試:
function semilogxhist(val,M)
% semilogxhist - generate histogram with M bars and log-scale x axis
if nargin<2; M=min(30,sqrt(length(val))); end
vmin=min(val); vmax=max(val);
edges=vmin*(vmax/vmin).^([0:M]/M);
count=histc(val,edges);
if size(count,2)==1, count=count'; end
x=edges(sort([1:M 1:M]));
y=[0 count(sort([1:M-1 1:M-1])) 0];
% outline only: semilogx(x, y, '-');
plot(x, y, '-'); fill(x, y, 'b'); set(gca,'XScale','log');
相關問題
- 1. 用log4j組織日誌
- 2. 如何繪製日誌文件?
- 3. 在stat_binhex R日誌規模
- 4. 如何組織更新的行日誌記錄
- 5. 如何組織我的規格文件?
- 6. 如何組織我的css規則?
- 7. Matplotlib日誌規模與限制關閉底部/向上繪圖脊柱
- 8. 在NodeJS上按模塊組織和顯示日誌
- 9. 如何製作日誌模塊
- 10. 如何從IE6進行大規模的組織升級......更好?
- 11. Python中的日誌規模mathplotlib?
- 12. 如何在Trac中組織自動更改日誌?
- 13. 如何組織集中式日誌記錄?
- 14. 組織CSS規則
- 15. 如何組織Perl模塊
- 16. 如何組織Drupal模板?
- 17. Matlab組織和繪製溫度數據
- 18. matplotlib日誌規模導致缺少點
- 19. R:如何繪製日誌刻度尺的水平圖
- 20. 如何組織圖節點以使用java 2d繪製
- 21. 繪製樹形圖 - 如何組織存儲陣列?
- 22. 如何以編程方式繪製組織結構圖?
- 23. ModSecurity審計日誌規則限制
- 24. 如何在日誌日程視圖中顯示組織模式重新登錄的項目
- 25. 如何組織組織信息在組織模式,使它作爲輸出表?
- 26. 在組織模式日記中排序
- 27. 如何最好地組織Django系統的規則組件?
- 28. 如何正確組織node.js的模塊
- 29. 你如何組織你的NInject模塊?
- 30. 在emacs組織模式捕獲項目上花費的日誌時間
您必須添加 'histc' 選項與巴,以保持histc邊緣功能:巴(1:100:1000,H, 'histc') – Eudhan