Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Saad
Posts:
25
Registered:
11/26/12


Variable not recognized outside the loop please help
Posted:
Jul 28, 2014 10:46 AM


Dear All,
I have a simple but a long code. As you can see from the loop below, I am not a very efficient coder but my code works. However, the program does not recognize the matrix F inside the loop. How can I make the code recognize the F matrix which I need to use once the loop is finished. Thank you very much
Kind Regards
S
v=1;
for z=1:length(rc) for j=1:length(r) for i=1:length(n) for k=1:length(d) for l=1:length(s) F(v,:)=[z, l, x]; end end end end end


Date

Subject

Author

7/28/14


Saad

7/28/14


dpb


