필터 지우기
필터 지우기

Urgent!! Help me to solve this error (struct contents reference from a non-struct array object )

조회 수: 1 (최근 30일)
'||--Algorithm: CARS_Original_oocycts_BM_oocyst,Preterat: 1, Population: 100--||'
'Run no.||LVs|| Varsize || RMSECV || RMSEP || Error || Non-Error || Accuracy ||Not assigned||sens(infec)||sens(noninfec)||speci(infec)||speci(noninfec)'
' 1 4 143 24.1415 27.6283 0.2253 0.7747 0.7500 0.2308 0.8571 0.6923 0.6923 0.8571
' 2 1 10 23.9704 27.6539 0.5000 0.5000 0.5000 0.9615 0.0000 1.0000 1.0000 0.0000
' 3 2 10 24.1009 27.6221 0.2857 0.7143 0.7333 0.4231 0.6667 0.7619 0.7619 0.6667
' 4 1 92 23.9795 27.6484 0.5000 0.5000 0.6667 0.9423 0.0000 1.0000 1.0000 0.0000
' 5 2 10 24.1480 27.6168 0.3444 0.6556 0.6429 0.4615 0.7000 0.6111 0.6111 0.7000
This is one of the text files i have..
I want to extract only the numerical part from this file..
so i used this code..
A=importdata ('CARS_Original_oocycts_BM_oocyst_data.txt');
X=A.data;
**here i got this error (Struct contents reference from a non-struct array object)
I dont know how to solve this... please help me to solve it

채택된 답변

DGM
DGM 2021년 4월 21일
Try specifying a delimiter:
A=importdata ('CARS_Original_oocycts_BM_oocyst_data.txt',' ');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by