I have four matrix of order 500X100 and three matrix has very small value like 2.12345 etc and fourth matrix has very large value like 1.7654e+165 and i want to substact fourth matrix from first,second and third matrix so please give me solution.

4 visualizaciones (últimos 30 días)
i tried to substract but every time the maximum value with minus sign comes in resulted matrix like -1.7654e+165 and it affect my final result.please give solution.

Respuestas (1)

KSSV
KSSV el 4 de En. de 2019
Editada: KSSV el 4 de En. de 2019
YOu can straight away substract them right? Check the below example:
A = rand(2,2,4) ;
iwant =A(:,:,1:3)- A(:,:,4)

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by