I know a module. It does not provide you a matrix, but if the customer enters the dimensions, it provides the required price.
PRICE BY SURFACE (AREA) / VOLUME / LINEAR / PERIMETER / WEIGHT DIMENSION MODULE
https://www.megventure.com/prestashop-modules/31-17-surface-area-volume-calculation-module-8691246289728.html#/5-your_prestashop_version-prestashop_8
Please consider using this one.