Albert Yam - MATLAB Cody - MATLAB Central

Albert Yam

7663
Rank
3
Badges
800
Score
1 – 50 of 99

Albert Yam received Speed Demon badge for Solution 70121

on 30 Jul 2015

Albert Yam submitted a Comment to Solution 96692

...cells

on 7 Jun 2012

Albert Yam submitted a Comment to Solution 86759

I lost to Doug.

on 8 May 2012

Albert Yam submitted a Comment to Solution 73793

%the part of the code i cut out, should work in theory .. fliplist = fliplr(list); idx = triu(ones(length(list)),0); for j = 1:length(idx) idx2 = unique(perms(idx(j,:)),'rows'); [a b] = size(idx2); for i = 1 : a idxi = boolean(idx2(i,:)'); list2 = list; list2(idxi,:) = fliplist(idxi,:); list2 = list2'; list2 = list2(:); dlist = abs(diff(list2)); val2 = sum(dlist(2:2:end)); if val2 < val val = val2; orientation = idxi'; end if val == 0 return end end end

on 10 Apr 2012

Albert Yam submitted a Comment to Solution 73793

Aww.. ran out of memory.

on 10 Apr 2012

Albert Yam submitted a Comment to Problem 391. Poker Series 11: selectBestHand

On a second thought.. shouldn't there be only one deck?

on 29 Feb 2012

Albert Yam submitted a Comment to Solution 54153

Should work for : hm1=[1 0 0 0 0 0 0 0 0 0 0 0 1;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0]; hm2=[1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 1];

on 29 Feb 2012

Albert Yam submitted a Comment to Problem 391. Poker Series 11: selectBestHand

hm1=[1 0 0 0 0 0 0 0 0 0 0 0 1;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0]; hm2=[1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 0;1 0 0 0 0 0 0 0 0 0 0 0 1]; Is player 1 supposed to win in this case?

on 29 Feb 2012

Albert Yam submitted a Comment to Solution 54136

Should work for Alfonso's cases.

on 29 Feb 2012

Albert Yam submitted a Comment to Solution 54130

I did it!

on 29 Feb 2012

Albert Yam submitted a Comment to Problem 386. Poker Series 10: bestHand

Test 6 and 7 are the same (no actual problems, just saying).

on 28 Feb 2012

1 – 50 of 99
Go to top of page