# Calculating Roll Centre Height

4 ビュー (過去 30 日間)
jake humphrey 2017 年 4 月 10 日
コメント済み: Swarooph 2017 年 4 月 19 日
I have created a simscape multibody model of a simple double wishbone suspension system and am trying to use it to calculate the change in roll centre as the wheels are moved vertically up and down. I have a created a matlab script with the relevant equations needed to calculate the height change using data extracted from the model such as the locations of the arm ends and the location of the contact patch. My problem is that there is over 4000 results for each coordinates of each point. How do I edit my script so that calculation is completed using the 1st line of the results and then the second and so on untill all of the results have been used creating a 1 column matrix with the solutions which can then be plotted on a graph. I have uploaded the script, Thank You
##### 1 件のコメント表示非表示 なし
Swarooph 2017 年 4 月 19 日
Hello Jake, Am I correct in understanding that your ultimate aim is to plot the roll center height as a function of the platform displacement? I think you can do this easier given the model you already have (posted in the other question). You are already recording the displacement variable in the model using a To Workspace block. You can do the same for the roll center height as well. In the RC Viz subsystem log the appropriate height data to the workspace. Screenshot below:
Run the model and find two variables in the base workspace. displacement and RCZ. Now you can simply plot them:
>> plot(displacement,RCZ)
>> title('Platform Displacement Vs Roll Center Height')
>> xlabel('Platform Displacement')
>> ylabel('Roll Center Height')
You will get the plot as shown below.
Is this what you are looking for?

サインインしてコメントする。

### カテゴリ

Find more on Multibody Modeling in Help Center and File Exchange

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by