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.

1 次查看(过去 30 天)
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.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by