# Discrete attractor model of working memory dynamics
This repository contains an implementation of the discrete attractor model used in the paper "Error-correcting dynamics in visual working memory" by Panichello, DePasquale, Pillow, and Buschman (2019).
Below are instructions for running a simple demo in which the model is fit to a sample dataset.
1. Dependencies
* MATLAB 2016b or later
* Statistics and Machine Learning Toolbox
2. Installation guide (<1 minute)
1. Download the repository folder to your desktop and unzip
2. Launch MATLAB and navigate to the unzipped repository folder using the 'CurrentFolder' gui
3. Enter the following in the MATLAB command window:
```matlab
>> addpath(pwd)
```
3. Demo/Instructions for use
1. To load a sample dataset and fit the discrete attractor model to this dataset, enter `>> demo` in the matlab command window. This script will take approximately 5 minutes to run.
2. The function *dpFit* in demo.m returns a structure *res*. This structure contains the negative log-likelihood of the model fit and the associated maximum likelihood parameters. To view a list of the returned parameters, enter `>> res`. The output should look something like this:
```
>> res
res =
struct with fields:
nLL: 618.8411
ss: [2x1 double]
sigmaM: [2x1 double]
sigmaE: [2x1 double]
betaM: [2x1 double]
betaE: [2x1 double]
pgB: [2x1 double]
psB: [2x1 double]
sigmaR: 2.0745
```
3. The value of specific parameters, (e.g., betaM for each set size) can be displayed using standard MATLAB conventions for indexing into structures, e.g.:
```
>> res.betaM
ans =
5.2467
7.6534
```
4. For more information try `>> help dpFit`
天天Matlab科研工作室
- 粉丝: 4w+
- 资源: 1万+
最新资源
- 毕设和企业适用springboot智能制造类及信息安全管理系统源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及无人驾驶系统源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及行业资讯平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及智能图书馆管理系统源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及智能物流调度平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及智能云平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造类及资产管理平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及产品溯源系统源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及教育资讯平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及情感分析平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及企业IT解决方案平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及全渠道电商平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及视觉识别平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及人工智能客服平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及数据存储平台源码+论文+视频.zip
- 毕设和企业适用springboot智能制造平台类及图书管理系统源码+论文+视频.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈