Take the 2-minute tour ×
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

closed as off-topic by Shobhit, azimut, Stefan Hansen, amWhy, Ron Gordon Oct 29 '13 at 18:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is not about mathematics, within the scope defined in the help center." – Shobhit, azimut, Stefan Hansen, amWhy, Ron Gordon
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

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

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