The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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



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];




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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.