Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Unable to read mat and csv exported files

Unable to read mat and csv exported files

Hi,

I'm a new OM user and I'm trying to load the results file .mat with Matlab and python but it seems that the file is corrupted.
"data_2" should contain all the simulation data but I can't recognize the label of each row. I suppose this is explained in "description" but the content is unreadable (see below).
I tried with the .csv files but I got the same result.

I'm using Windows 10.

Could anyone help me?

Thanks


Code:


val =
    'SVVVVCCCdddddddCC CCCPCPCLACPVLACLAPVLAVLAPVCPCCCPPLVLCVCPCPCPCP VVPVCCCVCCVLCVLCCVCVVSST                   CCPCPCRFTRTRFTRTRFTRTPRFTRTRFTRTPVVVPVVPVTTTTTTTTTTTTTTMMBFFTFBFFTF  IlIIIIUL HVHOOTHVHOOTOCFTSOCFTS              MTCENSTS=== H=CCPCPCCCCCPCPCPCCPCPVCCCCCPCPCCCCCPCPCCCCPCCCPCCCPCCPCPCPCP CCPCPCPCPCCPCCCPPCCPPCPCCPCPPCPCPCCPCPCPCP'
    'ioooouuoeeeeeeeoo uuuououocuooocuocooocoocoououooooooouououououo[ooooouuouuoouoouuouoowwe                   aaoaoaeieeeeieeeeieeeoeieeeeieeeoaoaooaooaaaaaaaaaaaaaaaiaoieoaoieo  nonnnnpo eoefuieoefuipliewpliew              auoxumyi    a huououuuuuouououuouoouuuuuououuuuuououuuuouuuouuuouuouououo uuououououuooouooouoooouuouoouououuouououo'
    'mllllrrnrrrrrrrnn rrrtrtrstrtlstrsttlstlsttlrtrnnttslsrlrtrtrtrtWlltlnrrlrrlsrlsrrlrlliir                   pptptpsxmfmsxmfmsxmfmtsxmfmsxmfmtllltlltlbbbbbbbbbbbbbbxncrxmrcrxmr  iwddtipw iliftmiliftmeoxmieoxmi              grltmopmttt stortrtrrrrrtrtrtrrtrtlrrrrrtrtrrrrrtrtrrrrtrrrtrrrtrrtrtrtrt rrtrtrtrtrrtnnrttnrttntrrtrttrtrtrrtrtrtrt'
    'uttttrrn(((((((nn rrrerersuretsursuetsutsuetrernneestsrtrerererebttetnrrtrrtsrtsrrtrttttm                   aaeaeaiepepiepepiepepeiepepiepepeutuetuetlllllllllllllliikwepwkwepw  teuuetee gtgspegtgspenseptnsept              nnurboeprrr  rirererrrrrerererreretrrrrrererrrrrererrrrerrrerrrerrererere rrererererrennreenreenerrereerererrererere'
    'laaaaeeeVVVVCCCee eeenene aena ae ana aa anaeneeenn a eaenenenen]aanaeeeaeea ea eeaeaacci                   ccncncsderesderesderensderesdereneaenaenaeeeeeeeeeeeeeemmwadeawadea  irccgirr haheu haheu eedeceedec              esmaet luuu nuceneneeeeeneneneenenaeeeeeneneeeeeneneeeeneeeneeeneenenenen eeneneneneeneeenneenneneenenneneneenenenen'
    'aggggnncoooouuocc nnntntnplntgplnpltgplgpltgntnccttpgpngntntntnt ggtgcnngnngpngpnngngghhn                   iititit rert rert rertt rert rert g tg tg              uuar rrar rr  a ttra   tgtttotgtttodd rhdd rh              t nprhoieee oeentntnnnnntntntnntntgnnnnntntnnnnntntnnnntnnntnnntnntntntnt nntntntntnntccnttcnttctnntnttntntnntntntnt'
    'teeeetttllllrrntt tttitito tieo to ieo eo ietitttiioeotetitititi eeietttetteoteotteteeiia                   ttititadanaadanaadanaiadanaadanaioeoieoiemmmmmmmmmmmmmmmmrddadrddad  lbaaalll  e   f e   f  da   da               irso nff,,,  , tititttttititittitietttttititttttitittttitttitttittitititi ttitititittitttiittiitittitiititittitititi'
    'i      ottttrrnoo    a a wr a wr wra wr wra  a ooaaw w   a a a a   a o      w  w      nnt                   aaaaaanetctnetctnetctanetctnetctaf fa fa aaaaaaaaaaaaaa  d et d et    onnt ii o ooyfo ooyfssetlssetl              za loe i    l o a a     a a a  a a      a a     a a    a   a   a  a a a a   a a a a  aoo aao aaoa  a aa a a  a a a a'
    'oddddffraaaaeeerr ffflflfeefldeefeeldeedeeldflfrrlledefdflflflfl ddldrffdffdefdeffdfddgge                   nnlnlncvueucvueucvueulcvueucvueul d ld ldttttttttttttttaa svut svut  Vuccoomm foff sfoff swwvuewwvue              atoafsieiii oifflflffffflflflfflfldffffflflffffflflfffflifflifflfflflflfl fflflflflfflrrfllrfllrlfflfllflflfflflflfl'
    'nrrrrll ggggnnc   lll l lrsl rrslrs rrsrrs rl l    rrrlrl l l l  rr r llrllrrlrrllrlrr                      cc c ceir reir reir r eir reir r crc rc rrrrrrrrrrrrrrrbbstirhstirh  aneerrii  f  =e f  =eiiirviiirv              tift sndfff nf l l lllll l l ll l rlllll l lllll l llll nll nll ll l l l  ll l l l ll   l   l    ll l  l l ll l l l '
    ' oooooooeeeetttoo oooaoao ioao io iao io iaooaoooaa o oooaoaoaoa ooaoooooooo oo oooooosss                   eeaeae cete cete cetea cete ceteaoooaooaoiiiiiiiiiiiiiisstacertacer  ld    tt sfso tsfso tttceettcee              io ii i     g coaoaoooooaoaoaooaoaooooooaoaoooooaoaooooa ooa ooaooaoaoaoa ooaoaoaoaooaoooaaooaaoaooaoaaoaoaooaoaoaoa'
    'tppppwwf      off wwwtwtwlswtplswlstplsplstpwtwffttlplwpwtwtwtwt pptpfwwpwwplwplwwpwpptti                     t t ae e ae e ae e tae e ae e tnpntpntpxxxxxxxxxxxxxxccate eate e  u [[ggss tstuo tstuo cce lcce l              o tonotmtwi esowtwtwwwwwtwtwtwwtwtpwwwwwtwtwwwwwtwtwwwwttwwttwwtwwtwtwtwt wwtwtwtwtwwtffwttfwttftwwtwttwtwtwwtwtwtwt'
    'i    ii ddddffr   iii i ieti  etiet  et et  i i    e ei i i i i       ii ii ei eii i  aam                   [[ [ [t omct omct omc t omct omc s s  s                iite oste os  efHHau   eeetf[eeetf[hh o hh o               npanpfioaan rtni i iiiii i i ii i  iiiii i iiiii i iiii hii hii ii i i i  ii i i i ii   i   i    ii i  i i ii i i i '
    'moooonnRrrrrll RR nnntntnaantoaanaatoaaoaatontnRRttaoanontntntnt ootoRnnonnoanoannonoottu                   FFtFtF tfpo tfpo tfpot tfpo tfpottottotto((((((((((((((sse-tfhe-tfh   o]]ieoo ptppfsptppfs  tf[  tf[               rb u adbrf  rsntntnnnnntntntnntntonnnnntntnnnnntntnnnntenntenntnntntntnt nntntntntnntRRnttRnttRtnntnttntntnntntntnt'
    'effffggeoooooooee ggghghgvnghfvngvnhfvnfvnhfghgeehhvfvgfghghghgh ffhfeggfggfvgfvggfgffeel                   ]]h]h]te eete eete eehte eete eehafahfahfggggggggggggggss-oe o-oe o  [r  nsff    us]   us]cre Vcre V              iilottlelno aiighghggggghghghgghghfggggghghggggghghggggh ggh gghgghghghgh gghghghghggheeghheghhehgghghhghghgghghghgh'
    '       appppwwfaa    e e ic e ic ice ic ice

There are 0 guests and 0 other users also viewing this topic
You are here: