Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

I'm having difficulty figureing out what this message means.

Asked by Dan K on 2 May 2013

Hello MLC,

I'm working on a Synthetic Aperture Radar simulation for my Masters Thesis. I'm building on a previous student's work and I'm just about done making his code work on my machine (I had to adjust some small issues that caused errors).

Here's my issue:

??? Error using ==> transpose
Transpose on ND array is not defined.
Error in ==> fty at 7
 fs=fftshift(fft(fftshift(s.'))).';

fty is a small piece of code written by Mehrdad Soumekh, shown here:

%%%%%%%%%%%%%%%%%%%%%
% Forward FFT w.r.t. the second variable %
%%%%%%%%%%%%%%%%%%%%%
function fs=fty(s)
 fs=fftshift(fft(fftshift(s.'))).';

1 Comment

Matt Kindig on 2 May 2013

What is the size() of s? Is it more than 2 dimensions?

Dan K

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 2 May 2013
Edited by Walter Roberson on 2 May 2013

You are trying to transpose an array of 3 or more dimensions.

Likely your original data is a 3 dimensional array representing an RGB image -- the third image is the color planes (R, G, B)

If you have a solid reason to do so, you can use permute(). You probably do not need it, though:

fs = fftshift( fft( fftshift(s, 2), 2), 2);

0 Comments

Walter Roberson

Contact us