bachlab / PsPM

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

Fix issue 718 -- `display` #723

Closed teddychao closed 5 months ago

teddychao commented 5 months ago

Fixes #718

Cause of the issue

The issue happened at line 32 in pspm_display. This is a line that is iteratively used when pspm_display is running. Initially, the varargin is set to be the input of pspm_display. In default, varargin is empty, so the line is not actually executed. In the next iteration, varargin becomes a multi-cell cell array, which is when nargin is no longer 0. This will not consider the situation that pspm_display actually has an input. I am not fully clear what gui_State.gui_Callback is used for, since it is not really called much in this function. Therefore, I set a situation to identify whether it is processing the user's input as varargin, and this situation is determined in line 38 of the new version.

Changes proposed in this pull request:

teddychao commented 5 months ago

It works now. The UI is ugly. I need to make a new pull request for the UI.

image