Rank: 1133 based on 142 downloads (last 30 days) and 5 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


 

Watch this Author's files

 

Files Posted by Kota Yamaguchi View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Oct 2013 Screenshot FSCACHE File-system cache API Author: Kota Yamaguchi load, save, cache, import, export, file 6 0
22 Apr 2013 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi string, array, cellstr, char, join 83 3
  • 5.0
5.0 | 4 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, zlib 33 0
  • 5.0
5.0 | 2 ratings
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 11 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 9 3
Comments and Ratings by Kota Yamaguchi View all
Updated File Comments Rating
13 Mar 2014 Example MATLAB class wrapper for a C++ class An example of how to safely encapsulate a C++ class in a MATLAB class, via a mex interface. Author: Oliver Woodford

Hello, I made a development kit for this design pattern, if anyone interested. https://github.com/kyamagu/mexplus

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 Yamaguchi's Files View all
Updated File Comment by Comments Rating
07 Apr 2014 STRJOIN Concatenate an array into a single string. Author: Kota Yamaguchi Julian Hapke

Thanks! It's even faster than the newly introduced build-in strjoin (at least the 2013a-Version I tested with a 1x100000 cell array of strings)

Example:

>> a=cell(1,100000);[a{:}] = deal('bla');
>> b=nan;tic;for ii =1:10;b=strjoin(a,' ');end;toc;
Elapsed time is 5.018935 seconds.
>> b=nan;tic;for ii =1:10;b=strjoin2(a,' ');end;toc;
Elapsed time is 0.424864 seconds.

where strjoin2 is the one I'm commenting on

27 Feb 2014 Byte encoding utilities Matlab utilities to encode/decode Base64 string and GZIP bytes. Author: Kota Yamaguchi Hongsheng

12 Jul 2013 Byte encoding utilities Matlab utilities to encode/decode Base64 string and GZIP bytes. Author: Kota Yamaguchi AMITAVA BISWAS

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

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 Ying Yin

Contact us