フィルターのクリア

histogram code from Matlab

3 ビュー (過去 30 日間)
DN
DN 2016 年 7 月 14 日
回答済み: JERZY MJ 2019 年 5 月 12 日
Hi I'm trying to convert histc() or hist() to HDL code so I wanted to see what it looks like inside under the bonnet as one do using edit call, but cant find the code in histc() when I type "edit histc" and just gives some basic explanation. For what its worth histc() is actually called inside hist() which you can do an edit on at least but just brings you back to histc() which you cant see. I know Matlab brought out a new histcounts(), but probably I wont be able to see this function either and I don't have this versions.
Do anyone know where I can find Matlab histogram code or any simial histogram code that can mimic either of the above to hist functions? Thanks in advance

回答 (3 件)

John D'Errico
John D'Errico 2016 年 7 月 14 日
You cannot see the code for compiled functions. So you cannot get the code for the tools you indicate.
However nothing stops you from using google, with a search like "histogram calculation" or "histogram code" something of the sort. There you will find simple code to generate a histogram.
  1 件のコメント
DN
DN 2016 年 7 月 14 日
Thanks John, that's quite obvious though don't you think, I don't think I would ask on here if I haven't found it yet would I. I'm sure this is the last resort for most people after stack overflow, google etc. Personally I reckon histc() is quite a specific piece of code re their edges calc and I've asked on here if they don't perhaps have it already. There are tonnes and tonnes of histogram info out there. I found this and thought perhaps I can compare it with histc() from Matlab http://www.cs.rug.nl/~rudy/matlab/source/histogram.m but it doesn't do the trick. I might have to write it from scratch then. Thanks anyway.

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


Bharath Venkataraman
Bharath Venkataraman 2016 年 7 月 18 日
If you have access to Vision HDL Toolbox and HDL Coder, you can generate HDL code for the Histogram block or System object shipped with that product.
  2 件のコメント
DN
DN 2016 年 7 月 18 日
Thanks Bharath,
Do you perhaps know in which release Vision HDL Toolbox came out or is it enveloped within another toolbox like the Image Processing Toolbox or part of something else?
DN
DN 2016 年 7 月 18 日
Bharath, don't worry saw it - its from R2015a, which I don't have. thanks anyway

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


JERZY MJ
JERZY MJ 2019 年 5 月 12 日
kop

カテゴリ

Help Center および File ExchangeSignal Attributes and Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by