Skip to content

Commit dde1760

Browse files
authored
Update README.md
added comments on how to use with other data
1 parent c0bb53c commit dde1760

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ Four scripts demonstrate the main use of the Toolbox:
2020
- Processed_data/: the Y-maze rat data used to demonstrate the code in the top-level scripts
2121
- Development/: scripts used in testing code for bugs, including unit-tests of strategy models [toolbox functionality does not need this folder]
2222

23-
24-
23+
# How do I use the toolbox with my data?
24+
1. Put your data into a format that can be read into a Table using "readtable" - see any of the top-level scripts for examples. For example, a CSV file. Ensure to include the command to write the Table entries as strings: readtable(<name of your data file>,'TextType','string').
25+
2. Use Replicate_Figure1 as a template. Make a copy (e.g. My_Strategy_Analysis.m). Edit that copy to load your data (in the format of Step 1) and select the strategies you want to apply (in the string "strategues = ["go_left",...,]); then run it and see the results
26+
3. Write your own strategy models: see the Strategy_models/ folder for examples, and a template. All strategy model functions have the same input (rows of the data Table up to the current trial) and output (the trial type as a string). Then simply add the name of the new function to your list of strategies in your script. And run it!

0 commit comments

Comments
 (0)