Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Variable not recognized outside the loop please help
Replies: 1   Last Post: Jul 28, 2014 10:58 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Saad

Posts: 25
Registered: 11/26/12
Variable not recognized outside the loop please help
Posted: Jul 28, 2014 10:46 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.