Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Matlab to Scilab Conversion Tips > Matlab-Scilab equivalents > F > fftshift (Matlab function)

fftshift (Matlab function)

Shift zero-frequency component of discrete Fourier transform to center of spectrum

Matlab/Scilab equivalent

Matlab Scilab

Particular cases


Due to the fact that strings or not considered in the same way in Matlab and in Scilab, results are not equal if A is a string matrix or vector in fftshift(A) or fftshift(A,dim). mtlb_fftshift can emulate this particularity in Scilab.


In Matlab, dim can be greater than the number of dimensions of A but in Scilab you get an error message in this case. mtlb_fftshift can emulate this particularity in Scilab.


Matlab Scilab
Y = fftshift('str')
Y = 'rst'
Y = fftshift("str")
Y = "str"
Y = mtlb_fftshift("str")
Y = "rst"
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Apr 02 17:37:58 CEST 2013