MATLAB: Plotting graph using table data graphtable I want to plot a graph T2 (y-axis) against time(x-axis). what code should I use? Best Answer a=readmatrix('energy lab Exp 1.xlsx');plot(a(:,1),a(:,2)); Related SolutionsMATLAB: How to make scatter plot graphs doc scatteruse hold on if you want to plot 3 datasets in a single plot. MATLAB: Graphing plot(T1, s1, 'r', T2, s2, 'g')This presumes that T1 and T2 are each vectors of times after their calculation. But if so, if they are vectors, then you probably need to change your s equations slightly: %Distance traveled after the Collision %Vehicle 1 s1 = (V1f.*T1) -(.5*U*G*T1.^2); %Vehicle 2 s2 = (V2f.*T2) -(.5*U*G*T2.^2); Related QuestionPlotting 2 graphs on the same axesGraphSyntax to plot graph using excel sheet dataGraphingIs there a way to turn scatter plots to dataHOW TO PLOT TABLE AND GRAPH
Best Answer