Why is fitglm throwing subscripting error with hospital dataset?

1 view (last 30 days)
  2 Comments
Walter Roberson
Walter Roberson on 28 Feb 2022
Most people who encounter this problem have SPM12 (or a different SPM) installed. If you do as well, then look under the SPM installation directory for a folder named external/fieldtrip/compat/matlablt2013b and delete that folder (or make sure it gets removed form your MATLAB path.)

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 23 Jun 2021
That problem does not occur for me if I test in R2020b (your version) or R2021a
When I look at the code, I can see that the problem could arise if you happen to have a third-party function named istable on your MATLAB path. What shows up for
which -all istable
  2 Comments
Matyas Varga
Matyas Varga on 23 Jun 2021
C:\....spm12 (2)\spm12\external\fieldtrip\compat\matlablt2013b\istable.m
Took the full path out for privacy reasons.
C:\Program Files\MATLAB\R2020b\toolbox\matlab\datatypes\tabular\istable.m

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!