From 15c5dfd19eee41f16743448e7fb0c9c9ea3badea Mon Sep 17 00:00:00 2001 From: Nicola Vigano <nicola.vigano@esrf.fr> Date: Wed, 6 May 2015 17:18:36 +0200 Subject: [PATCH] Small warning fix Signed-off-by: Nicola Vigano <nicola.vigano@esrf.fr> --- zUtil_Maths/gtMathsGetSameSizeZeros.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zUtil_Maths/gtMathsGetSameSizeZeros.m b/zUtil_Maths/gtMathsGetSameSizeZeros.m index eb0d6752..a8e84faf 100644 --- a/zUtil_Maths/gtMathsGetSameSizeZeros.m +++ b/zUtil_Maths/gtMathsGetSameSizeZeros.m @@ -8,6 +8,6 @@ function zeros_vol = gtMathsGetSameSizeZeros(vol) zeros_vol{n} = gtMathsGetSameSizeZeros(vol{n}); end else - zeros_vol = zeros(size(vol), class(vol)); + zeros_vol = zeros(size(vol), 'like', vol); end end \ No newline at end of file -- GitLab