MATLAB: How to expand x axis to have normal plot graphplotplotting I have 500 values of x and y. When I plotted it, I got something weird plot. What can I do for that? t=data{:,1};y=data{:,2};plot(t,y) Best Answer A(:,1)=data{:,1};A(:,2)=data{:,2};A=sortrows(A,1);plot(A(:,1),A(:,2)) Related SolutionsMATLAB: How I should plot graph for this function syms xy = (x+(1/x))^2fplot(y) MATLAB: Expanding matrix [j k i]=meshgrid([x1,x2]);xx = [i(:) j(:) k(:)]; Related QuestionPlot two different rows in x and yExpanding MatrixCan’t plot functionExpand ArrayHow to code data in a file onto a plotted graph
Best Answer