Date  File  Comment by  Comment  Rating 

07 Nov 2014  TCP/IP Socket Communications in MATLAB using Java Classes A simple example TCP/IP server and client using a helper Java class  Sergio  
02 Aug 2014  Uniform distribution over a convex polytope Samples uniformly the interior of a convex polytope.  Sergio  Excellent example. Thank you very much for your kind support. 

02 Aug 2014  Uniform distribution over a convex polytope Samples uniformly the interior of a convex polytope.  Sergio  Yeah, please, that would be awesome. This function and the Truncated Multivariate Normal distribution constrained to polytopes are exactly what I was looking for!


02 Aug 2014  Truncated multivariate normal Generates pseudorandom vectors drawn from the truncated multivariate normal distribution.  Sergio  
02 Aug 2014  Uniform distribution over a convex polytope Samples uniformly the interior of a convex polytope.  Sergio  Dear Tim, thanks so much for your quick answer. Sorry for the typo, it should write
I found the reference you include in the comments very useful!
A = [0, 0, 1; 1, 0, 0; 1, 2, 0; 1, 2, 1];
num_samples = 1e4; data_sb = shake_bake_sampling(A, b, x, num_samples);
[data_cprnd S] = cprnd(num_samples,A,b);
Nevertheless, none of these methods work well with an arbitrary polytope (e.g., random A and b).
Thanks! 

01 Aug 2014  Uniform distribution over a convex polytope Samples uniformly the interior of a convex polytope.  Sergio  Hi,
I am trying a very simple code snippet:
Please, could you help me to debug it?


20 Feb 2012  Bindings to Course Coding (tile coding) for Reinfocement Learning. Matlab bindings to C code for Course Coding.  Sergio  I have followed these instructions to surmount the gcc version: http://askubuntu.com/questions/75012/howdoiinstallgcc43 But running in Matlab: variables = 0.25*ones(4,1);
it outuputs this error:
Error in ==> getTiles>hashCoordinates at 70
Error in ==> getTiles at 50
Indeed getTiles__rndseq__is a scalar equal 1.4845e+09. Does it make any sense? 

20 Feb 2012  Bindings to Course Coding (tile coding) for Reinfocement Learning. Matlab bindings to C code for Course Coding.  Sergio  Hi, I am sorry, but I have not figured how to use your Tile Coding functions. I am able to compile the c file and get the mexa64. However I do not understand well how to use it. I am lacking some understanding of the input variables. For instance, where do I set the width of the tiles, perhaps indirectly based on the number of tilings and the total number of tiles?
Thank you very much in advance!!! 

22 Mar 2011  Graph adjacency matrix to incidence matrix Conversion from graph adjacency matrix to incidence matrix.  Sergio  Oops! Forget my latter question :) 

22 Mar 2011  Graph adjacency matrix to incidence matrix Conversion from graph adjacency matrix to incidence matrix.  Sergio  Please, how could I modify it in order to contain +1 and 1 instead of only logical values? Thanks! 
