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 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

KSSV
KSSV il 4 Gen 2019
Modificato: KSSV il 4 Gen 2019
YOu can straight away substract them right? Check the below example:
A = rand(2,2,4) ;
iwant =A(:,:,1:3)- A(:,:,4)

Categorie

Scopri di più su Shifting and Sorting Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by