Message Boards Message Boards

Import a matrix/list of variables?

GROUPS:

Hello,

I have a .csv data like these: "m [kg]",m1,m2,m3,m4 and i would like to import it to Mathematica, but m1,m2... should be variables, not a string. What should I have to do?

Have a nice day!

POSTED BY: Adam Šrut
Answer
3 months ago

Hi,

This might work:

masses=Import[your_file.csv, "Table" , {"FieldSeparators"->"," , "NumberPoint"->"."}]

A bit hard to tell without having seen exactly what your .csv looks like.

POSTED BY: Fredrik Erling
Answer
3 months ago

Group Abstract Group Abstract