Calculating percentage differences between matrix array data

I have 5 sets of array size 261x261, how to calculate percentage differences between all these 5 measurements?
D=( A1(i,j)-A2(k,l))./A2(k,l); localA= D*100;
( I think this one can apply only between two measurements, but if I would like to compare measurements for all 5 sets of data, how to do that?)
Thanks, Alia

답변 (1개)

KL
KL 2017년 10월 21일
You can simply do,
dummyMatrix1 = reshape(1:25,5,5);
dummyMatrix2 = 10*dummyMatrix1;
perCentDiff = (dummyMatrix2-dummyMatrix1)./dummyMatrix1*100;
You could do the same for your matrix across all 5 measurements.

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2017년 10월 21일

답변:

KL
2017년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by