m = 0;(adsbygoogle = window.adsbygoogle || []).push({});

x(1)=10;

for k = 2:3:11

m = m+1;

x(m+1) = x(m) + k^2;

end

Its a simple program, but for some reason I cannot explain how it works, I was wondering if I can get some help.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Question about a matlab program

Loading...

Similar Threads for Question matlab program | Date |
---|---|

MatLab function question | Sep 5, 2015 |

Contour question in matlab | Feb 9, 2015 |

LaTeX Concept and subject of latex and its usage and related questions on latex | Sep 25, 2014 |

MATLAB A question on linear algebra(also Matlab related) | Jun 23, 2014 |

MATLAB MATLAB ODE programing and misc question | Feb 17, 2011 |

**Physics Forums - The Fusion of Science and Community**