Rank: 1170 based on 140 downloads (last 30 days) and 9 files submitted
Personal Profile:

If you're interested in MATLAB's Statistics Toolbox, check out some articles I have written on the topic over at http://www.blinkdagger.com/category/statistics.

Professional Interests:
stats, numerical methods, image processing, monte carlo, game theory

 

Watch this Author's files

 

Files Posted by Rob View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Oct 2011 Screenshot Scanports function scans for available serial ports portlist = scanports(portlimit); Returns cell array of available serial port identifiers. Author: Rob Slazas serial, port, com, scan, serial port 27 0
23 Mar 2009 Screenshot REN, a multiple file renaming utility with GUI REN = renaming utility with a GUI. It was inspired by Quan's post on Blinkdagger.com Author: Rob Slazas rename, file handling, quan, blinkdagger 11 2
12 Sep 2008 Simple String Cleanup Utility Simple utility function that cleans up stray characters and spaces from strings so they can be used Author: Rob Slazas strings, clean, cleanup, string, format, character 7 0
02 Sep 2008 Screenshot Poker hand ranker Function that evaluates poker hands, returns ranks and text descriptions. Author: Rob Slazas games, poker, hand, rank, doug hull, lazyweb 35 13
  • 4.5
4.5 | 4 ratings
21 May 2008 Screenshot Place one 2D matrix inside another Places a 2D matrix B into a larger 2D matrix A Author: Rob Slazas matrices, place put 2d matrix i... 20 1
  • 5.0
5.0 | 1 rating
Comments and Ratings on Rob's Files View all
Updated File Comment by Comments Rating
06 Aug 2011 REN, a multiple file renaming utility with GUI REN = renaming utility with a GUI. It was inspired by Quan's post on Blinkdagger.com Author: Rob Slazas Jason

OK... figured it out. Just had to right-click on the '.fig' file and select "open in guide".

06 Aug 2011 REN, a multiple file renaming utility with GUI REN = renaming utility with a GUI. It was inspired by Quan's post on Blinkdagger.com Author: Rob Slazas Jason

Looks like the perfect utility for me but I can't get it working. I am using R2010b on a Mac and the GUI window is too small. I can't access the text entry boxes - needs to be a little bigger (?). Any help? thanks.

27 Feb 2009 Poker hand ranker Function that evaluates poker hands, returns ranks and text descriptions. Author: Rob Slazas MuffinMan

Great starting point for a hand evaluator however still has issues and does not rank all hands correctly. I discovered this several months ago but didn't want to bother with registering to post a reply. After a coworker mentioned using this evaluator to prove an argument, I mentioned the shortcomings. Unfortunately now I can't remember the cases it fails at, but I recall the error is due to the arbitrary method of ranking hands by hashing the card numbers. In some cases hands that should not have the same rank are hashed to the same value. A easy test is to use combs=nchoosek([1:52],5); ranks=rankp(combs,5); unique(ranks) and you will find that all possible hands gives 6987 possible ranks using rankp, which is incorrect, and instead you should get 7462.

Once the total ranks checks out, you should test and find that there are 10 straight flushes, 156 four of a kinds and full houses, 1277 flushes, 10 straights, 858 trips and two pairs, 2860 pairs, and 1277 high card ranks. Otherwise, there is still an error.

As an aside, the 2+2 evaluator can do unordered evaluations of 5-7 card hands, at blazing speeds, and can easily be ported to Matlab.

27 Feb 2009 Poker hand ranker Function that evaluates poker hands, returns ranks and text descriptions. Author: Rob Slazas MuffinMan

30 Aug 2008 Poker hand ranker Function that evaluates poker hands, returns ranks and text descriptions. Author: Rob Slazas S., Rob

Thanks Tim C., there was a hole in the conditional statement for hands with pairs. Nice catch, the update has it fixed.

Contact us