# How do you perform range compression of SAR data on a 2D matrix?

I am building a Matlab program to process RADARSAT-1 data that came with this book.

The book describes the steps to creating SAR image as follows

I am currently implement the range compression step. For my matched filter computation I am performing a range FFT by transposing each row of the 2D matrix that represents my image first then taking the FFT of that.I understand what I need to do to perform my matched filter computation. My question is more related to how to do it in matlab on a 2D matrix. My 2D matrix is 1536×2048 where 2048 is the number of columns which represents my fast time samples or range cells.Currently I am transposing each row so I can perform the fft on the rows of the 2D matrix in order to do the matched filter computation. Is that the right thing to do? If not what should I do?

Lastly, how can I confirm that my range compression code works?

• The fft documentation in matlab has the answer: fft(x, N, dim) – Marcus Müller Jul 23 '20 at 7:12
• Do you have a particular waveform in mind? – Envidia Jul 23 '20 at 16:23
• Yes. I am working on SAR data and compressing a linear FM chirp waveform I created. I am also wondering of the best way to confirm that the range compression worked? – level2fast Jul 24 '20 at 15:44