My 'for' loops aren't altering anything except a few points in my matrices
Show older comments
I'm writing a finite difference problem for my heat transport class. I'm not the best at coding but I feel like my code should work. The code runs but doesn't work. The code doesn't seem to change all the nodes in the array, only the corners? If anyone has any tips I would greatly appreciate it. I attached my code and it can be viewed below. cookie(i,j,k) should change each time the conditions are met and then it should iterate every time step. cookie(i,j,k) is an array with k pages of i by j arrays ( or it should be).
1 Comment
Joshua Wiseman
on 13 Nov 2018
Accepted Answer
More Answers (0)
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!