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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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|cite|improve this question

closed as off-topic by SHOBHIT GAUTAM, 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 GAUTAM, azimut, Stefan Hansen, amWhy, Ron Gordon
If this question can be reworded to fit the rules in the help center, please edit the question.

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|cite|improve this answer
x=linspace(0,1,8);
y=zeros(1,8);
stem(x,y)
share|cite|improve this answer

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