MATLAB: How to link markers with lines in for loop forlinestyleloopmarkerMATLABplot When I plot a graph using for loop with Matlab 2015a as below: The plot look like this: I want to connect each 'n' with line as follows: How to do that? Thanks.. Best Answer try to use this codeclear allclose allclcX=randint(5,100,[1 1000]);Y=randint(1,100,[1 1000]);for n=1:100 x=[]; y=[]; for k=1:5 x=[x X(k,n)]; y=[y Y(1,n)]; end figure(1) plot(y,x,'-o') hold on drawnowend Related SolutionsMATLAB: How to plot y=(x/6)^3 in matlab >> x = 0:0.1:3; >> y = (x/6).^3; >> plot(x,y) MATLAB: How to plot point with marker like a dart Seedoc feather Related QuestionHi how can id do this plot f = 5sinā”(10pi*t) over one periodClear the ploted nodes only
Best Answer