Message Boards Message Boards

GROUPS:

Import a matrix/list of variables?

Posted 10 months ago
645 Views
|
1 Reply
|
0 Total Likes
|

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!

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.

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