Hey everyone,
In a practica I collected Data from an oscilloscope. This data is saved in .csv files (an example is in the attachment).
Now I have to plot and fit this data. The main problem is, that I don't even get the data into the right format to plot it. Right now I have this code:
datag1 = Import[
"C:\\Users\\tobia\\OneDrive\\Grundpraktikum \
1\\Experimente\\4_Harmonsicher Oszillator\\Graph & \
Calculation\\T0027.CSV", "CSV"]
l = Length[datag1]
datag3 = Take[Take [datag1, -l + 16], l - 17]
So now I have a seperated List of all the data points. The next step is, to seperate the matrix to have 5 data lists for the 5 variables, so I can plot and fit them individually. I tried the following things:
Delete[datag3, {All, 2}]
Well this works if i use a specific number instead of All, so I tried to solve the problem with a for-loop.
For[i = 1, i <= Length[datag3] , i++, Delete[datag3, {i, 2}]]
Here datag3 didn't change at all. I think that I somehow have to define a new list, which gets edited but my experience in Mathematica is really limited.
So I decided to use a matrix instead of a list. To be honest, I do not know if there is a major difference between those two in Mathematica, but I decided to give it a try.
matrixfull = MatrixForm[datag3]
Then I used the Transpose command and tryed different things, with the help of Wolfram Doc, but none of them worked. I know that I am kind of a Mathematica noob, but learning everything by yourself is pretty hard. So can you guys help me out? How would you solve this problem?
Thanks, Tobias
Attachments: