Student Lounge

Sharing technical and real-life examples of how students can use MATLAB and Simulink in their everyday projects #studentsuccess

Roll Center Calculator App with MATLAB App Designer

Nice to meet you, I am Nobu the technical lead for  Formula SAE Japan.

The other day, I created an app for Formula Student teams that automatically calculates the position of the roll center using MATLAB’s App Designer. This app enables teams to modify the code and change the algorithm.

Below I explain the details and would like to hear your feedback on this app and how you might use it.

What is the Roll Center

The roll center is the point of the center (virtual moment) when the object rotates. So why is the roll center so important? For example, a car has a center of gravity. However, the farther the center of gravity and the height of the roll center are, the easier it is for the car to lose balance. Therefore, the car body may turn over when trying to turn a curve. Therefore, it is important to know the exact position of the roll center and adjust the position of the roll center so that the car does not lose its balance.

How is the roll center determined?

There is a mechanism called a suspension that connects the car body and wheels, and the position of the roll center is determined by how the suspension is attached.

What you can do with the MATLAB Roll Center App

If you enter the necessary information in this roll center app, the position of the roll center will be calculated automatically and displayed in 3D.

How to download the roll center app

  1. Click the link shown below
  2. Click the download button in the upper right corner
  3. Unzip the Zip file and open the rollCenterCalculator file in the folder

Link: Roll Center App


There are two main types of information that you need to enter in the app.

  • First, information about a vehicle body
  • Second, information about the mounting position of the suspension

Information about the vehicle body

Each parameter is shown in the picture below.

Suspension mounting position

Since the double wishbone suspension is used this time, the mounting points are divided into upper and lower parts, with 2 points on the vehicle body side and 1 point on the wheel side.


  • Instantaneous Center (IC): Parameters required in the process of calculating the roll center (instant center)
  • Roll Center (RC): Roll Center
  • Distance between RC and CG: Difference between the roll center and the height of the center of gravity

How to Customize App

  1. Click rollCenterCalculator.mlapp in MATLAB
  2. Click CodeView
  3. Code to customize


The above is a brief overview of the app and how to use it, but this app is static so that even beginners can easily understand it. There are many things you can add or customize the app with MATLAB App Designer, such as increasing the parameters to make it more dynamic by changing the calculation algorithm inside or changing the display format to make it easier for others to see. Thank you.

There are useful resources for automotive competition. Please check the link below


  • print


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.