Match Array coordinate and size

I have two arrays with different size one is 241x241 and another one is 321x321.
I want to match the size because my dimensions of arrays being concatenated are not consistent. Anyone knows how to match it?

댓글 수: 2

DGM
DGM 2022년 3월 3일
편집: DGM 2022년 3월 3일
That depends entirely on what you want, the dimensions along which you're trying to concatenate, and how the data needs to be colocated.
Would it be meaningful to discard part of the larger array? Which part should be discarded?
Would it be meaningful to pad the smaller array? Which sides should be padded? What would be an appropriate padding value?
Would it be meaningful to scale one of the arrays to match the other? Which one should be scaled? What interpolation would be appropriate?
N.Dyana Koo
N.Dyana Koo 2022년 3월 3일
I see. thank you so much for your suggestions.
I got the ideas now. thanks!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2022년 3월 3일

댓글:

2022년 3월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by