How to find/present all of the grid points xi, where xi = 2+(i-1)*2 for 0<=i<=n.

1 vue (au cours des 30 derniers jours)
I'm trying to figure out how to display the value of from x(0) to x(n)

Réponse acceptée

Star Strider
Star Strider le 15 Avr 2017
This vectorises easily enough:
i = 0:7;
xi = 2+(i-1)*2
xi =
0 2 4 6 8 10 12 14
Am I not understanding something in your Question?
  2 commentaires
kingsley
kingsley le 15 Avr 2017
thank you so much
Star Strider
Star Strider le 15 Avr 2017
My pleasure.
If my Answer solved your problem, please Accept it!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by