2
$\begingroup$

I want to draw a figure of the mesh which the interval (0,1) ared divided into 8 equalsize subintervals. Which comment do I need to use ? The points needs to be on the natural straiht line. Thanks

2 Answers 2

4
L = 0:1/8:1; plot(L,zeros(size(L)),'.','MarkerSize',14); hold on plot([0 1],[0 0],'k') 
1
x=linspace(0,1,8); y=zeros(1,8); stem(x,y)