Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • This is really useful, thanks! However, how is it possible to do this operation on multiple matrices and without knowing the largest one (i.e., the one with most samples)? Commented May 20, 2019 at 14:51
  • @Bianca Would it be based on the first rows again? Also, would all of those be sorted? Commented May 20, 2019 at 14:55
  • yes, based on the first row. And yes they are sorted, imagine several matrices 'b' as in the example, all with different sampling times Commented May 20, 2019 at 14:58
  • 1
    Is the order in which they are "merged" relevant? @bianca I mean taking into account that they all merge with the largest Commented May 20, 2019 at 15:14
  • 1
    Nice soln @divakar I think I overcomplicated mine a little assuming we dont know which array is A. As if having different shaped arrays didn't complicate it enough :) Commented May 20, 2019 at 16:35