I have a list of seven elements:
list1={0,10,-20,15,-25,20,-30};
I have also another list of six elements:
div={10,15,20,15,10,5};
I would like to create a list subdividing the values of list1
using values of div list
as a reference:
Subdivide[0,10,10]
Subdivide[10,-20,15]
Subdivide[-20,15,20]
Subdivide[15,-25,15]
Subdivide[-25,20,10]
Subdivide[20,-30,5]