bachlab / PsPM

A matlab suite for Psycho-Physiological Modelling
GNU General Public License v3.0
43 stars 10 forks source link

Warning when running Display with full file path #718

Closed dominikbach closed 3 months ago

dominikbach commented 4 months ago

Summary

pspm_display works correctly with just the file name but throws a warning when called with full file path (from command line or GUI).

>> pspm_display('pspm_PP12.mat')
>> pspm_display('/Users/dominik/Documents/PublicData/Sandbox/pspm_PP12.mat')
Warning: The input to STR2FUNC "/Users/dominik/Documents/PublicData/Sandbox/pspm_PP12.mat" is not a valid
function name. This will generate an error in a future release. 
> In pspm_display (line 32) 
teddychao commented 4 months ago

Hi @dominikbach Thank you for pointing out this issue. This code seems to be used by GUI functions and not expected to be used by user's inputs. Please let me propose a solution here. Thank you. Best wishes Teddy