MATLAB: Counting plots on a graph countplots on graph x = 0:0.01:5; y = sin(2*pi*x); plot(x,y) Hi, Is there a way for me to count the amount of points plotted on the graph from 0 – 5s or 0-2s for example? Best Answer Read about length and size. length(x) and size(x) should give you what yo want. Related SolutionsMATLAB: Plotting iterations of summations using a for loop. x = -pi:0.1:pi; n = 5; sum = 0; for k = 0:n kTerm = ((-1).^(k)).*((x.^(2.*k)))./(factorial(2.*k)); sum = sum + kTerm; plot(x,sum) hold on endBest wishesTorsten. MATLAB: Count G = randi(3, 45, 2);I = randi(3, 45, 2);sum(all(G == I, 2)) Related QuestionI want to draw a graph..Count binsHow do i get the graph plottedHelp needed plotting a graphFigure countPlotting graph in matlabCount variable length
Best Answer