Hello DSP folks, I am looking for a simple method to implement the following function: I have a 3D matrix P(i, j, k) with the last index 'k' representing a time variable. I also have a 3D matrix of time-delays d(i,j), and I wish to delay the 3D P matrix using the delays specified by the 2D matrix. Is there anyway to do it directly in MATLAB, i.e., using a single operation instead of a for loop over the indices i and j ? The for loop implementation takes a long time to execute, and I was not able to use the usual MATLAB constructs for handling matrices to implement this. Is there a MATLAB function that can implement this faster ? Any help is greatly appreciated. Thanks, Vijay.
Request MATLAB tip
Started by ●February 26, 2004
Reply by ●February 27, 20042004-02-27
> Is there anyway to do it directly in MATLAB, i.e., using a single > operation instead of a for loop over the indices i and j ? The for > loop implementation takes a long time to execute, and I was not able > to use the usual MATLAB constructs for handling matrices to implement > this. Is there a MATLAB function that can implement this faster ?Show us the for loop so we can see exactly what you mean.