Question
I am using the "rpmtrack" function in the MATLAB R2018a prerelease. When my "x" signal input has ~ 10e5 elements, the "rpmtrack" function takes 15 minutes to run. If my "x" input signal has ~ 10e4 elements, it only takes a couple minutes to run. Is there any way I can decrease the run time of this function when inputting a vector with 10e5 elements?
Expert Answer
Prashant Kumar
PhD Expert
Answered Aug 24, 2026
There are a couple methods of speeding up the computation time of the "rpmTrack" function:
- Divide the signal into various segments. Then, estimate the rpm over each segment, and concatenate those rpm estimates.
- Coarsen the frequency resolution to reduce FFT length, and then compensate the ridge estimation accuracy by specifying enough ridge points and penalty values. This can be done using the name-value pairs for this function such as "FrequencyResolution" and "FrequencyPenalty", as pointed out in the function's documentation page.
100% Run Guarantee
3-Hour Fast-Track Delivery
Need a Custom Version or Complete Simulation for This Problem?
Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.
Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here
Related matlab Questions & Solutions
Browse All →
Explore similar technical troubleshooting questions and verified MATLAB solutions:
Ready-to-Run MATLAB & Simulink Projects
Browse All Projects →