MATLAB Answers

Undefined function 'isnan' for input arguments of type 'table'. Error in regress (line 66) wasnan = (isnan(y) | any(isnan(X),2));

16 views (last 30 days)
Tristan Desforges-Riendeau
Edited: Cris LaPierre on 18 Nov 2019
Please help

  0 Comments

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 18 Nov 2019
Edited: Cris LaPierre on 18 Nov 2019
The problem is that isnan does not support the table data type as an input. You can check which data types are supported by looking at the input argument description in the documentation.
You can try passing in the extracted data from your table by using curly braces:
wasnan = isnan(y{:,:})

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags