cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

sort data (periodic)

XDN
13-Aquamarine
13-Aquamarine

sort data (periodic)

Hi all 😀

I have a data group from excel

to understand:

the 1st column is : Torque

the 2 column is : Position

the 3 column velocity: Torque

 

If i make a drawing with Torque (vertical Y axis)  and position (horizontal  X axis), i have this:

Capture d’écran 2021-05-20 094611.png

 

I see  i have periodic data :

in position , approximately from 50 to 2250 milimeter.

this is OK, the data relate to a cylinder which makes round trips

 

My problem:

 

How to extract data in new matrix wich include only data for one stroke:

submatrix for positionning

50 to 2250

and submatrix for positionning

2250 to 50

 

and that for the 5 back and forth

 

I want to make a drawing for forth (torque and velocity)

and back (torque and velocity)

 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

Here it is using only Prime.

You will need to change the path of the READEXCEL function of course.

Cheers

Terry

View solution in original post

5 REPLIES 5

Hi

The answer lies in some Excel data analysis.

Position is a linear change from a common low and common high point of 50 and 2200 respectively.

Capture.JPG

You can filter the data that goes from 1 to 639 points on 50 and 2200 to get the positions to break up the submatrices on two and fro.  The numbers in blue show you what row indices to use to split the data.

Capture2.JPG

Cheers

Terry

VladimirN
24-Ruby II
(To:XDN)

"submatrix(A, ir, jr, ic, jc) - returns the submatrix of array A consisting of elements in rows ir through jr and columns ic through jc of A.".

 

Pic-1.png

XDN
13-Aquamarine
13-Aquamarine
(To:VladimirN)

is there a solution that uses only Prime ?

Because, i want to make some calculation with this data and finally I increase the graph with regression or smoothing algorithm for example

XDN
13-Aquamarine
13-Aquamarine
(To:XDN)

Capture d’écran 2021-05-20 114014.png

 

It's ok if i make a sort with excel, and manipulate data with prime.

but I would have liked use only prime.

 

 

Hi,

Here it is using only Prime.

You will need to change the path of the READEXCEL function of course.

Cheers

Terry

Top Tags