I have a dataset with 50 predictor variables and two class labels (disease/normal). When I run this code, I get the error message below. Any ideas on how to correct this error?
[Mdl,FitInfo] = fitclinear(values(:,1:50),classes)
Error using classreg.learning.Linear.prepareDataCR (line 140) X must be a numeric matrix.

답변 (1개)

Akira Agata
Akira Agata 2017년 2월 16일

0 개 추천

The predictors "values(:,1:50)" should be numeric matrix.
I would like to recommend checking it again.

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

질문:

AG
2017년 2월 16일

답변:

2017년 2월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by