Message Boards Message Boards

0
|
3984 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Import a matrix/list of variables?

Posted 6 years ago

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

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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract