How do I structure two for loops which do very different things?
1 view (last 30 days)
Show older comments
I am modeling a physics problem. I have an initial vector of values for each point in the domain. I want to use explicit Euler method to step in time to model the unsteady problem. How do i manifest the two for loops, one for the time procedure, and one for calling the elements of the vector#?
I have coded the numerical analysis model, however I have come undone at how to keep the loops separate whilst gaining the wanted outcome. I have tried numerous times to no success.
2 Comments
James Tursa
on 3 Feb 2016
Can you post a short example, even if it is just pseudo-code, to show what you have done?
Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!