Why is fitglm throwing subscripting error with hospital dataset?

1 visualizzazione (ultimi 30 giorni)
  2 Commenti
Walter Roberson
Walter Roberson il 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.)

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 23 Giu 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 Commenti
Matyas Varga
Matyas Varga il 23 Giu 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
Matyas Varga
Matyas Varga il 23 Giu 2021
I took the first one off the path and now it works.
Thank you!

Accedi per commentare.

Più risposte (0)

Tag

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by