Clear Filters
Clear Filters

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.

3 views (last 30 days)
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.

Answers (1)

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

Categories

Find more on Linear Algebra in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!