A related question on Stack Overflow:
i dont understand it properly..how 6,8,11 is a valid set ?
NOTE: That link has moved. It is now HERE: https://www.setgame.com/sites/default/files/instructions/SET%20INSTRUCTIONS%20-%20ENGLISH.pdf
Also, I think you make a 'set' by combining 3 different cards so that, when combined, have 0 1 and 2 in each column or one of those options across entire column
for 2 7 8:
1 1 1 1
0 0 0 0
2 2 2 2
-- has 0, 1, 2 in each column
for 6 8 11,
1 0 1 2
2 2 2 2
0 1 0 2
-- has 0, 1, 2 in first three column and all 2s in last column
Thank you, @Highphi. The link to instructions has been updated.
trying to do it without a for-loop
Using parts of Solution 115046
Using parts of Solution 114934
Calculate the Levenshtein distance between two strings
Sum the Infinite Series
What is the distance from point P(x,y) to the line Ax + By + C = 0?
Use of regexp
Maximum value in a matrix
Assign matrix rows/columns to separate variables
Cumulative maximum of an array
Find the nearest prime number
Determine the number of maximal cliques in an undirected graph
Triangular matrices in 3D array
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office