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
0 个评论
采纳的回答
DGM
2021-4-21
Try specifying a delimiter:
A=importdata ('CARS_Original_oocycts_BM_oocyst_data.txt',' ');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!