import tab and comma delimited dat file
이전 댓글 표시
I'm a newbie and am struggling to import a dat file which is a combination of tab and comma delimited data.
I have attached a sample dat file which is very easy to import in excel but in MATLAB i cannot get it to work.
I am trying to create a structure called mydat which will contain (see dat file, note the tabs and commas)
mydat.param1 = 1.01
mydat.param2 = 1.02
mydat.param3 = 1.03
mydat.curves = [1.01 2.01 3.01 4.01;
1.02 2.02 3.02 4.02;
1.03 2.03 3.03 4.03]
mydat.curves_info = [data1; data2; data3; data4]
need help!
my Dat file
------------
Parameteres
------------
param1 (cm) : \t 1.01
param2 (cc) : \t 1.02
param2 (g) : \t 1.03
------------
Information
------------
info1 :
info2 :
info3 :
, data1 , data2 , data3 , data4 ,
, 1.01 , 2.01 , 3.01 , 4.01 ,
, 1.02 , 2.02 , 3.02 , 4.02 ,
, 1.03 , 2.03 , 3.03 , 4.03 ,
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!