I wanted to know how I can implement parallel processing in matlab

3 views (last 30 days)
Hi I am using MATLAB Version: 9.2.0.556344 (R2017a) MATLAB License Number: 875746 Operating System: Microsoft Windows 7 Professional Version 6.1 (Build 7601: Service Pack 1) What i wanted to know is that suppose I have 100 signals (sin, cosin and any other) and wanted to perform FFT on all the signals parallely at same time. for ex we can use for loop and call fft comand in that but it will perform it sequentialy but i wanted to perform it parallely means fft of the 100 signal at a time. Please resolve this query.

Answers (1)

Steven Lord
Steven Lord on 22 Jun 2018
Are all the signals vectors of the same size? If so put them into a matrix and call fft with the dim input.
A = rand(5);
Y = fft(A, [], 1);
secondColumn = A(:, 2);
isequal(Y(:, 2), fft(secondColumn))
In this case, the second column of the fft of A operating along the columns of A is the same as extracting the second column of A and taking its fft. [There's nothing special about the second column; you could do the same for any of the columns of A.] See the pictures in the description of the dim input argument on the fft documentation page for more information.

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!