Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
60 views

Mismatch Between Frequency Response and Eigenvalue-Based Natural Frequency in MATLAB for a 5-DOF System with Frequency-Dependent Stiffness

I am working with a mechanical system that has five degrees of freedom (a composite plate), and I am trying to compute its frequency response, time-domain response, and natural frequencies. I have ...
AaronTBM's user avatar
  • 119
4 votes
1 answer
216 views

Parallel 3D Discrete Cosine Transformation Implementation in Matlab

I am trying to implement 3D Discrete Cosine Transformation calculation in Matlab with parallel computing parfor. The formula of 3D Discrete Cosine Transformation is ...
JimmyHu's user avatar
  • 7,224
2 votes
1 answer
128 views

Applying correction to a time series in Matlab

I face a computation efficiency problem. I have a time series of a non-monotonically drifting variable, that is measurements of objects going through a machine (where the measurement is made) in a ...
Cunningham's user avatar
5 votes
1 answer
849 views

Matlab IIR filter implementation

I need to implement the Matlab filter(b,a,x) function in Java. Before I do this, I would like to rewrite the function in Matlab before translating into Java. So far,...
Christopher Byrne's user avatar
3 votes
2 answers
512 views

Spectrum Analysis with Discrete Fourier Transform

Here is a simple implementation of the Discrete Fourier Transform: myFourierTransform.m ...
Ziezi's user avatar
  • 1,194
4 votes
0 answers
117 views

Neuroscientific testing

I have written the code below for the following experiment: Subjects get simultaneous stimulation of left and right thumb and have to tell which one was stimulated "stronger" (with higher intensity, i....
Pugl's user avatar
  • 41
4 votes
1 answer
129 views

Wavelet decomposition of images

I am working on wavelet decomposition and found a formula for it and wrote it by myself for computation. The formula is: $$I_{LH}(i,j) = \sum_{p=1}^{N_L} \sum_{q=1}^{N_H}\ L(p)\ H(q)\ I(i+p, j+q)$$ ...
Gopi's user avatar
  • 143
4 votes
2 answers
2k views

Optimizing C++ equivalent of Matlab `filter` function

Minimum working example below. The Matlab filter function filters the input data x using a rational transfer function defined by the numerator and denominator ...
Phlox Midas's user avatar
4 votes
0 answers
1k views

Reading cell array of vectors with h5py

I have a data stored in .mat files, each .mat contains a cell array of vectors of length ~70. I'm trying to read these .mat files in to Python with h5py, but reading just 1000 cells takes about 7 ...
Jackson's user avatar
  • 183
2 votes
0 answers
699 views

Linear interpolation Matlab to C++

I don't have a strong mathematics/Matlab background. I would like to convert this Black level correction function from Matlab to C++. Please comment about on the code style and correctness of my ...
Gilad's user avatar
  • 5,373
3 votes
1 answer
3k views

fftshift implementation for OpenCV

I'm trying to implement fftshift from matlab for OpenCV. Can you please review the correctness of my algorithm? Have I missed something? Also, is there a better and faster way to do it? ...
Gilad's user avatar
  • 5,373
3 votes
1 answer
250 views

Calculate FFT from windowed time-based signal

I have a time-based signal (Raw signal) sampled at 6 MHz and need to analyze it in freq. domain. I'm learning DSP and this is very first time I work with DSP. Could you please help to check if this ...
Mai's user avatar
  • 131
4 votes
1 answer
14k views

Matlab code demonstrating use of fft (Fast Fourier Transform)

I posted the following Matlab script in response to a question on Signal Processing. Here is the questions with my answer. I am looking for comments on how to make this code more instructive for the ...
Richard Povinelli's user avatar