Error Troubleshooting Classification Models
조회 수: 1 (최근 30일)
이전 댓글 표시
Im getting this error when i run my code

This is the code i am running
data = readmatrix('project.xlsx')
Tbl = array2table(data);
varNames = ["Number","Amplitude","PSD","Recurrence_Rate","Recurrance_Points","Determinism","Ratio_Determinism_Recurrence_Rate","Average_Diagonal_Length","Average_Vertical_Length","Laminarity","Divergence","Entropy","Trapping_Time","OSA_Label"];
mdl = fitcdiscr(Tbl, Number)
Please help troubleshoot this
댓글 수: 0
답변 (1개)
Kevin Holly
2023년 4월 25일
편집: Kevin Holly
2023년 4월 25일
I believe you meant this:
mdl = fitcdiscr(Tbl, "Number")
instead of
mdl = fitcdiscr(Tbl, Number)
Edit: Also what does your table look like? Does it have those variable names?
댓글 수: 6
Kevin Holly
2023년 4월 26일
Is it possible that you can share your Excel sheet or one with similar data?
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!