File Exchange

image thumbnail

Analyzing Tire Test Data

Tire test data is processed and Magic Formula coefficients are calculated.


Updated 02 Aug 2018

View License

TireDataAnalysis.mlx processes tire test data from acceleration and brake as well as cornering tests and returns the Pacejka’s Magic Formula coefficients for both a longitudinal and lateral model.

Cite As

MathWorks Student Competitions Team (2020). Analyzing Tire Test Data (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)

Jack Seddon

When we are importing data from recent versions of TTC like round 8 or 7 then we are constantly getting the message 'There might be no corresponding slip values.' Please help if anybody has faced the similar issue.


First off, thank you for posting this code and the corresponding documentation - Maybe others can comment, but there's a few issues that I've run into when using the code to attempt to evaluate Round 8 and Round 6 .mat run files from the TTC.

1) When plotting lateral (cornering) files, the Pacejka approximation appears to be off at the origin (I.e. opposite sign briefly) for both the provided example file and actual lateral files taken from the TTC.
2) When using the tool to plot cornering files from Round 8 (for example), the x-axis lists the range of SA's +/- 0.4, however TTC documentation states that SA's were swept in the range of +/- 12 deg.
3) When using the code to evaluate DriveBrake (I.e. long. tire tests), the approximations for TTC test files (for example Hoosier LC0's from Round 6) deviates quite significantly from the raw data. Furthermore, TTC documentation states that SR was varied between +/- 0.2 for these tests, while the plot shows SR values approaching 0.5?

Let me know if anyone's run into similar issues, or if there's something I've missed along the way.

Works well - the only issue is that the normalised version of the lateral forces doesn't work correctly, as far as I can tell. Since the slip angle and lateral force will have opposite sign in the data, the script will not find a good fit for the data, as it is currently written!

Gage Smith

I think the code works exactly as my team needs it to however, we are trying to get more accurate fits and we don't know how to tighten up the approximations to make them more accurate. Any help on how to improve the accuracy would be greatly appreciated.


thank you for charing this awesome code. It is exactly what we were looking for our project.
Unfortunately it does not run for specific run's of round five of the TTC Data. The problem we have is that following file B1464run35.mat does not work but B1464run36.mat does work. We do not exactly understand what causes the errror. The warning Matlab generates is: "There might be no corresponding slip value". Does someone else has the same warnings and have solved the problem?
For any help, thanks in advance.


Mohit Patil


Updated required MathWorks products information.
Added thumbnail image to FEX site.
Added link to project website.
Minor edit on tire data *.mat-files.
Added tags.

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux