Extraction données *.dat matlab

Fermé
Drissou81 - Modifié par Drissou81 le 20/08/2011 à 12:54
 Drissou81 - 20 août 2011 à 20:37
Bonjour à tous, je me permets de venir solliciter votre aide suite à un problème avec matlab.
J'ai une série de fichiers, dont voici un bout :
[Spectrum]
Version = 1
IDData = 42a7_2011-08-09_09-03-25_926_083
IDDevice = SAM_8108
IDDataType = SPECTRUM
IDDataTypeSub1 = CALIBRATED
IDDataTypeSub2 =
IDDataTypeSub3 =
DateTime = 2011-08-09 09:03:25
PositionLatitude = 0
PositionLongitude = 0
Comment = A11
CommentSub1 = 1m
CommentSub2 =
CommentSub3 =
IDMethodType = SAM Control
MethodName = SAM_8108
Mission = No Mission
MissionSub = 1
RecordType = 0

[Attributes]
CalFactor = 1
IDBasisSpec =
IDDataBack = DLAB_2011-03-04_17-21-07_822_758
IDDataCal = DLAB_2011-03-07_11-21-29_638_062
IntegrationTime = 128
P31 = -1
P31e = 0
PathLength = +INF
RAWDynamic = 65535
Temperature = +NAN
Unit1 = $01 $01 Wavelength nm
Unit2 = $03 $06 Intensity mW/(m^2 nm)
Unit3 = $f0 $06 Error mW/(m^2 nm)
Unit4 = $f1 $00 Status
p999 = 14
[END] of [Attributes]
[DATA]
0 6 0 0
309.536782951282 +NAN 0 0
312.828025703063 +NAN 0 0
316.119527046651 +NAN 0 0
319.411277962832 1.54579437025474 0 0
322.703269432392 1.50484844375568 0 0
325.995492436115 1.56720924970471 0 0
329.287937954788 1.82500611609189 0 0
332.580596969197 1.59338067634958 0 0
335.873460460126 1.6102552176569 0 0
339.166519408362 1.78880553074779 0 0
342.459764794689 2.14650350254279 0 0
345.753187599894 2.48783842310862 0 0
349.046778804762 3.0781889471946 0 0
352.340529390079 3.35636399396686 0 0
355.63443033663 3.74599869667533 0 0
358.928472625201 4.05560016864862 0 0
362.222647236577 4.77980993610867 0 0
365.516945151544 5.3049983743072 0 0
368.811357350888 5.84901559397388 0 0
372.105874815394 6.52010216335067 0 0
375.400488525847 7.6043248142597 0 0
378.695189463034 8.55819758079521 0 0
381.98996860774 8.76779239266197 0 0
385.28481694075 10.1875733197046 0 0
388.57972544285 11.4193639057277 0 0
391.874685094826 12.583243567661 0 0
395.169686877463 14.6435250993303 0 0
398.464721771546 18.6835892630314 0 0
401.759780757862 22.7164745716779 0 0
405.054854817196 25.6854416532887 0 0
408.349934930333 28.0912354519153 0 0
411.645012078059 30.8914182959658 0 0
414.94007724116 33.6151471748562 0 0
418.235121400421 35.9747120770962 0 0
421.530135536628 38.1206634950253 0 0
424.825110630566 39.560249693378 0 0
428.120037663021 40.4761762029726 0 0
431.414907614778 43.3407949139378 0 0
434.709711466624 48.2387479330123 0 0
438.004440199343 53.6049437399756 0 0
441.299084793722 58.9908928586362 0 0
444.593636230545 65.0480219601973 0 0
447.888085490598 70.8196485540714 0 0
451.182423554668 75.7919029164984 0 0
454.476641403539 79.8953300198936 0 0
457.770730017997 83.7563176664629 0 0
461.064680378828 87.3519966794323 0 0
464.358483466817 89.9195559021725 0 0
467.65213026275 92.2133758785515 0 0
470.945611747412 95.7568261781192 0 0
474.23891890159 99.2092988938182 0 0
477.532042706067 103.223709090317 0 0
480.824974141631 105.623088762861 0 0
484.117704189067 106.023180955513 0 0
487.41022382916 107.308540101322 0 0
490.702524042696 111.052845998099 0 0
493.99459581046 114.791422732728 0 0
497.286430113238 116.441863779747 0 0
500.578017931816 117.009903122756 0 0
503.869350246979 118.750723699172 0 0
507.160418039513 121.425798342816 0 0
510.451212290203 122.656374963227 0 0
513.741723979835 121.506995398048 0 0
517.031944089194 121.074299493565 0 0
520.321863599066 123.908533675062 0 0
523.611473490237 127.678215750227 0 0
526.900764743493 130.737674411737 0 0
530.189728339618 133.372931230964 0 0
533.478355259398 135.698687945473 0 0
536.766636483619 136.67498487998 0 0
540.054562993067 137.396439234489 0 0
543.342125768527 138.586575321005 0 0
546.629315790784 140.155745618869 0 0
549.916124040625 141.495217542122 0 0
553.202541498834 142.188033461415 0 0
556.488559146198 141.691444879833 0 0
559.774167963502 141.0378169255 0 0
563.059358931532 140.658233551441 0 0
566.344123031072 139.927603926016 0 0
569.628451242909 138.981958215482 0 0
572.912334547828 138.084311446547 0 0
576.195763926616 137.453454592879 0 0
579.478730360056 137.336117198605 0 0
582.761224828936 136.224949486181 0 0
586.04323831404 131.765668842752 0 0
589.324761796154 125.502785127217 0 0
592.605786256065 120.172204905352 0 0
595.886302674556 116.121508128934 0 0
599.166302032414 111.914601700557 0 0
602.445775310425 108.546984628955 0 0
605.724713489373 106.055161482569 0 0
609.003107550045 104.563684263022 0 0
612.280948473227 103.116898312416 0 0
615.558227239703 102.481875251344 0 0
618.834934830259 101.775550012217 0 0
622.111062225682 100.507476506527 0 0
625.386600406756 97.8299883806624 0 0
628.661540354267 96.129830771519 0 0
631.935873049 96.3911757380484 0 0
635.209589471742 97.5089056315534 0 0
638.482680603277 98.0736814803901 0 0
641.755137424392 97.1000813393437 0 0
645.026950915872 94.9295141096682 0 0
648.298112058502 92.2790122134266 0 0
651.568611833068 89.3274886493797 0 0
654.838441220356 86.3576282188403 0 0
658.107591201152 84.5410910062423 0 0
661.37605275624 84.0016837572075 0 0
664.643816866406 83.7336190241372 0 0
667.910874512436 82.8546246873814 0 0
671.177216675116 81.9429454356123 0 0
674.442834335231 81.1434200879099 0 0
677.707718473567 80.2947621281211 0 0
680.971860070909 77.7546592266866 0 0
684.235250108043 72.0367953383596 0 0
687.497879565754 66.4055720262954 0 0
690.759739424828 63.3911486162939 0 0
694.020820666051 62.4754368191082 0 0
697.281114270208 60.511073445787 0 0
700.540611218085 57.8619335277119 0 0
703.799302490467 53.9372548810516 0 0
707.057179068139 49.3435360296062 0 0
710.314231931889 43.3827981174682 0 0
713.5704520625 35.3337179222262 0 0
716.825830440759 26.8770443891578 0 0
720.080358047451 19.8863464907953 0 0
723.334025863362 15.0068611930224 0 0
726.586824869277 11.1468865853428 0 0
729.838746045982 8.24520108842425 0 0
733.089780374262 6.23540571249471 0 0
736.339918834904 4.9186781611187 0 0
739.589152408692 3.56940615968556 0 0
742.837472076413 3.96684365425892 0 0
746.084868818851 3.38163075127335 0 0
749.331333616793 3.06033077012761 0 0
752.576857451023 2.5487084203575 0 0
755.821431302328 2.02901850609305 0 0
759.065046151493 1.9574904849354 0 0
762.307692979304 3.09514685476018 0 0
765.549362766546 2.58065799031433 0 0
768.790046494005 2.81676784176579 0 0
772.029735142466 3.04808993186952 0 0
775.268419692715 3.37022230804751 0 0
778.506091125538 3.22158694596575 0 0
781.74274042172 2.8950405951368 0 0
784.978358562046 2.79515652861209 0 0
788.212936527303 3.58144632946467 0 0
791.446465298276 4.06687918841977 0 0
794.67893585575 4.54589744335091 0 0
797.910339180511 4.95382461458095 0 0
801.140666253345 6.36925534863698 0 0
804.369908055037 5.51752361941295 0 0
807.598055566372 6.6602914867107 0 0
810.825099768137 4.03661223966584 0 0
814.051031641117 4.69891678661946 0 0
817.275842166097 2.24772366678072 0 0
820.499522323863 3.64273173150884 0 0
823.722063095201 2.50515903118521 0 0
826.943455460896 3.28766264034354 0 0
830.163690401734 2.3877641097442 0 0
833.3827588985 2.04601689502326 0 0
836.60065193198 2.01279569717432 0 0
839.817360482959 0.109741743491519 0 0
843.032875532224 1.37212426673927 0 0
846.247188060559 0 0 0
849.460289048751 1.32411139795561 0 0
852.672169477584 0 0 0
855.882820327844 1.98131214975149 0 0
859.092232580318 0 0 0
862.30039721579 1.9886699246306 0 0
865.507305215046 1.2047896692676 0 0
868.712947558872 2.49655937175729 0 0
871.917315228053 1.18462174169467 0 0
875.120399203375 0 0 0
878.322190465623 0.341997590458736 0 0
881.522679995584 0 0 0
884.721858774041 2.73590893466346 0 0
887.919717781782 0 0 0
891.116247999592 5.02423595868811 0 0
894.311440408256 0.116106487752938 0 0
897.50528598856 4.51220423623945 0 0
900.697775721289 0.485562436156579 0 0
903.888900587229 3.89854272453944 0 0
907.078651567166 0 0 0
910.267019641885 1.4572275312906 0 0
913.453995792172 1.6482666187539 0 0
916.639570998812 2.24885272985643 0 0
919.823736242591 4.19152337238694 0 0
923.006482504294 1.32373640971929 0 0
926.187800764707 6.08197076877194 0 0
929.367682004616 0.764426978515034 0 0
932.546117204807 6.17058972787437 0 0
935.723097346064 0 0 0
938.898613409173 1.47126614772668 0 0
942.07265637492 0 0 0
945.245217224091 3.56199112843331 0 0
948.416286937471 0.597797909871242 0 0
951.585856495845 5.8620071621845 0 0
954.75391688 +NAN 0 0
957.92045907072 +NAN 0 0
961.085474048792 +NAN 0 0
964.248952795001 +NAN 0 0
967.410886290132 +NAN 0 0
970.571265514972 +NAN 0 0
973.730081450305 +NAN 0 0
976.887325076917 +NAN 0 0
980.042987375595 +NAN 0 0
983.197059327122 +NAN 0 0
986.349531912286 +NAN 0 0
989.500396111871 +NAN 0 0
992.649642906664 +NAN 0 0
995.797263277448 +NAN 0 0
998.943248205012 +NAN 0 0
1002.08758867014 +NAN 0 0
1005.23027565362 +NAN 0 0
1008.37130013623 +NAN 0 0
1011.51065309876 +NAN 0 0
1014.648325522 +NAN 0 0
1017.78430838673 +NAN 0 0
1020.91859267374 +NAN 0 0
1024.05116936381 +NAN 0 0
1027.18202943772 +NAN 0 0
1030.31116387628 +NAN 0 0
1033.43856366025 +NAN 0 0
1036.56421977043 +NAN 0 0
1039.6881231876 +NAN 0 0
1042.81026489254 +NAN 0 0
1045.93063586605 +NAN 0 0
1049.0492270889 +NAN 0 0
1052.16602954189 +NAN 0 0
1055.2810342058 +NAN 0 0
1058.39423206141 +NAN 0 0
1061.50561408951 +NAN 0 0
1064.61517127088 +NAN 0 0
1067.72289458632 +NAN 0 0
1070.8287750166 +NAN 0 0
1073.93280354252 +NAN 0 0
1077.03497114485 +NAN 0 0
1080.13526880438 +NAN 0 0
1083.23368750191 +NAN 0 0
1086.33021821821 +NAN 0 0
1089.42485193407 +NAN 0 0
1092.51757963027 +NAN 0 0
1095.60839228761 +NAN 0 0
1098.69728088686 +NAN 0 0
1101.78423640882 +NAN 0 0
1104.86924983426 +NAN 0 0
1107.95231214397 +NAN 0 0
1111.03341431875 +NAN 0 0
1114.11254733937 +NAN 0 0
1117.18970218662 +NAN 0 0
1120.26486984129 +NAN 0 0
1123.33804128415 +NAN 0 0
1126.40920749601 +NAN 0 0
1129.47835945763 +NAN 0 0
[END] of [DATA]
[END] of Spectrum

Je voudrais être capable de lire facilement ce fichier sous matlab et de pouvoir en extirper

des informations.
La partie la plus importante se situe au niveau de [DATA] je voudrais pouvoir séparer ces données en 2 colonnes afin de pouvoir retracer mes spectres, je ne sais pas du tout comment faire.
Aidez moi SVP !!!

1 réponse

up !

c'est très important svp
0