TransWikia.com

How to save data to a new file, import the data and then use it

Mathematica Asked on May 11, 2021

I have a for loop which generates random matrices and then some scalar numbers for example:

For[j = 1, j <= 100, j++,a=RandomState[4];b=RandomState[4];c=Tr[a];d=Tr[b];e=b+c;{a,b,c,d,e}>>>file.csv] data=Import["file.csv path","Data"]

ListLinePlot[data[[All,3]],data[[All,4]]]

I need to save this data to a new file and then import to plot for example c against d and perform some other numerical calculations. I have tried the above however it does not work. Here RandomState is from the QI package.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP