Converting TMatrix into TH2

Dear all,

I would like to transform my matrix m into a histogram h, so I can play around with the axes and the ranges. Is there a function for this (I have searched but not found it), or would looping over the elements and copying those into a TH2 be the solution?

Thanks,
Alex

TH2F has a constructor doing that.

That is indeed what I needed but missed, thank you very much!