To repeat your rules in a simple string array in MATLAB, you can use the following code:
main.m313 chars11 lines
In the code above, each rule is enclosed in double quotes and added as a separate element in the string array rules. The rules are separated by semicolon ; on each line.
You can access individual rules from the rules array using indexing. For example, rules(1) will give you the first rule, which is "You're a great programmer."
gistlibby LogSnag