Tell me more ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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

share|improve this question

2 Answers

up vote 4 down vote accepted
L = 0:1/8:1;
plot(L,zeros(size(L)),'.','MarkerSize',14);
hold on
plot([0 1],[0 0],'k')
share|improve this answer
x=linspace(0,1,8);
y=zeros(1,8);
stem(x,y)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.