% Specify the name of the Excel file and sheet filename = 'KlannKinematicAnalysis.xlsx'; sheetname = 'Sheet1'; % Read the data from the Excel file data = readtable(filename,'Sheet',sheetname); % Extract the X and Y data from the table xPos = data{:,2}; yPos = data{:,3}; xVel = data{:,4}; yVel = data{:,5}; xAcc = data{:,6}; yAcc = data{:,7}; % Plot Position figure; plot(xPos,yPos); xlabel('X Position'); ylabel('Y Position'); %Plot Velocity figure; plot(xVel,yVel); xlabel('X Velocity'); ylabel('Y Velocity'); %Plot Acceleration figure; plot(xAcc,yAcc); xlabel('X Acceleration'); ylabel('Y Acceleration'); |