Error with Screen function on .exe file
이전 댓글 표시
Hello, I am trying to execute a program made in an old version of Matlab(2019a), gstreamer 1.16 MSVC. This executable is actually from a study where they provide an OpenScience repository with the material, the study is titled "Is it impossible to obtain absolute pitch in adulthood" by Yetta Kwailing Wong... and the link to the repository: https://osf.io/tkrgb/files/osfstorage
Personally, when following the concise README file:
How to run the compiled program
- Download and install Gstreamer 1.16 MSVC for Psychtoolbox Windows version
- Download and install the complied program
- Open the C: drive> Program Files or Program Files (x86) folder> APTraining5_v16>application
- Right-click "APTraining5_v16" to open the contextual menu, and then click "Run as administrator"
I encounter an the error:
"Undefined function 'Screen' for arguments of type 'char'.
Error in => APTraining5_v16.m at line 1801."
Problem is that I don't know how to check inside the .exe file for this error, also that as it is from a considerably old version, I am unsure of what might cause it. In recent days I have tried differente ways to solve it but I always keep getting the same error message.
Any help would be greatly appreciated, also note that I'm new to Matlab (only heard of it last week in this study) so maybe I'm making a rookie error.
채택된 답변
추가 답변 (1개)
Pratyush
2023년 11월 21일
0 개 추천
Hi Jaime,
I understand that you are encountering an error related to the "Screen" function in the MATLAB code.
This error typically occurs when the "Psychtoolbox" functions are not properly installed or configured.
Here are couple of suggestions to troubleshoot the issue:
- Ensure that Psychtoolbox is correctly installed and configured with MATLAB. You may need to reinstall or update the Psychtoolbox package to ensure compatibility with your MATLAB version (2019a).
- Confirm that the version of Psychtoolbox you installed (Gstreamer 1.16 MSVC for Psychtoolbox Windows version) is compatible with MATLAB 2019a. Sometimes, older versions of packages may not be fully compatible with newer MATLAB versions, leading to errors.
- Verify that the paths to the Psychtoolbox functions are correctly added to MATLAB's search path. This can be done using the "addpath" function in MATLAB.
You can refer to the following link to install and know more about psychtoolbox:
Hope this helps.
댓글 수: 1
Jaime
2023년 11월 21일
이동: Walter Roberson
2023년 11월 22일
카테고리
도움말 센터 및 File Exchange에서 Installation and Operational Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!