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
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 andRCZ. Now you can simply plot them:
>> plot(displacement,RCZ)
>> title('Platform Displacement Vs Roll Center Height')
Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.
Translated by
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.