The link provided by Habib Muhammad Nazir Ahmad may confuse: that is the Fisher procedure to compare correlation coefficients, but it is obsolete.
If you wish to compare correlation coefficients, use bootstrapped effect sizes (https://it.mathworks.com/matlabcentral/fileexchange/68238-bootes-compare-correlations?focused=67ae44d8-a24e-43b9-8fc5-11814f92e785&tab=function).