# Savepath in Matlab not working

**URL:** <https://psychtoolbox.discourse.group/t/savepath-in-matlab-not-working/5242>\
**Category:** Programming Help\
**Created:** [January 25, 2024, 9:35pm UTC](https://psychtoolbox.discourse.group/t/savepath-in-matlab-not-working/5242 "2024-01-25T21:35:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rshriver30](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@rshriver30](https://psychtoolbox.discourse.group/u/rshriver30)\
**Post date:** [January 25, 2024, 9:35pm UTC](https://psychtoolbox.discourse.group/t/savepath-in-matlab-not-working/5242/1 "2024-01-25T21:35:02Z")

</div>

Our lab recently updated to Matlab2023 from 2017 and we are trying to get our experiment running properly. I was able to set up PTB and run the experiment, however, Matlab wont let me save the path and therefore have to redownload psychtoolbox every time matlab is re-opened.  
When I right-click my folder ‘Psychtoolbox’, there is an option to ‘remove from path’  
but \>\>which Psychtoolbox returns ‘not found’

Any idea what’s going on here?

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [January 25, 2024, 10:23pm UTC](https://psychtoolbox.discourse.group/t/savepath-in-matlab-not-working/5242/2 "2024-01-25T22:23:50Z")

</div>

assuming this is on windows, perhaps you need to run matlab as  
administrator so that you can save the path once.  
Even if you cannot make it work, you only have to run  
SetupPsychtoolbox, not redownload it.
