Rank: 1430 based on 58 downloads (last 30 days) and 4 files submitted
photo

Kota Yamaguchi

E-mail
Company/University
Stony Brook University
Lat/Long
40.912094, -73.12194

Personal Profile:

PhD Student in Computer Science

Professional Interests:
image processing, computer vision, machine learning, statistics

 

Watch this Author's files

 

Files Posted by Kota View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Apr 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi string, array, cellstr, char, join 48 2
  • 5.0
5.0 | 3 ratings
04 Jan 2013 Byte encoding utilities Matlab utilities to encode/decode Base64 string and GZIP bytes. Author: Kota Yamaguchi data import, encode, base64, gzip, compression 6 0
22 Dec 2011 Screenshot EMat: Embedded Matlab Templating EMat class provides Ruby's ERB-like templating system in Matlab. Author: Kota Yamaguchi text, template, html, document, data export, fprintf 3 1
  • 4.5
4.5 | 2 ratings
18 Mar 2011 N-D histogram Extension to the histc function to count the number of data points on N-D grid. Author: Kota Yamaguchi histogram, histc, nd 1 3
Comments and Ratings by Kota
Updated File Comments Rating
29 Jan 2012 N-D histogram Extension to the histc function to count the number of data points on N-D grid. Author: Kota Yamaguchi

Hi Daniel,

You can use fixed step by manually creating range vector. For example,

edge = {[0,1,2,4,8,16], ...}

If what you need is a certain number of uniform edges in the observed data, you also might want to try linspace or logspace function.

edges = {linspace(min_val, max_val, 12), ...}

All the histnd does is to wrap histc function built in Matlab to allow multiple dimensions. If you need to get count of unique values, you need to use unique function instead:

[Xu, m, n] = unique(X, 'rows'); % this will find unique vectors Xu and corresponding index m.

h = histc(m, unique(m)); % histogram over unique index values

You should check the Matlab documentation of unique, hist, or histc function.

Comments and Ratings on Kota's Files View all
Updated File Comment by Comments Rating
21 Mar 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi Yin, Ying

Thank you, Kota! I was about to write one myself too because I'm used to the join method in Ruby, but found yours. Nicely done!

21 Mar 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi Yin, Ying

21 Mar 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi Yin, Ying

13 Sep 2012 EMat: Embedded Matlab Templating EMat class provides Ruby's ERB-like templating system in Matlab. Author: Kota Yamaguchi Annamalai, Muthu

Thanks, Yamaguchi! I like the idea of templates and the API - its a great add on for many types of projects; HTML generation, scripts etc. However my design would be different.

25 Jul 2012 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi Moss, Robert

Very nicely done! I was about to write this myself, but this has saved me the effort. I like the way it handles arrays and cellstr arrays.

I'm curious: do you happen to be an IDL programmer? There is an IDL function of the same name with the "same" functionality.

Top Tags Applied by Kota
array, base64, cellstr, char, compression
Files Tagged by Kota View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Apr 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi string, array, cellstr, char, join 48 2
  • 5.0
5.0 | 3 ratings
04 Jan 2013 Byte encoding utilities Matlab utilities to encode/decode Base64 string and GZIP bytes. Author: Kota Yamaguchi data import, encode, base64, gzip, compression 6 0
22 Dec 2011 Screenshot EMat: Embedded Matlab Templating EMat class provides Ruby's ERB-like templating system in Matlab. Author: Kota Yamaguchi text, template, html, document, data export, fprintf 3 1
  • 4.5
4.5 | 2 ratings
18 Mar 2011 N-D histogram Extension to the histc function to count the number of data points on N-D grid. Author: Kota Yamaguchi histogram, histc, nd 1 3

Contact us