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