Hi @Marino Liranzo ,
Please check if the following code helps.
private List<double> GetMaxValue(List<List<double>> list) {
List<List<double>> newList = new List<List<double>>();
List<double>res=new List<double>();
for (int i = 0; i < list[0].Count; i++) {
Console.WriteLine(i);
List<double> a = new List<double>();
foreach (List<double> l in list) {
a.Add(l[i]);
}
newList.Add(a);
}
foreach (List<double> l in newList) {
res.Add(l.Max());
}
return res;
}
Best Regards.
Jiachen Li
----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.