Group Abstract Group Abstract

Message Boards Message Boards

0
|
4K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Avoid repeatability issue of "For" after saving a file?

Posted 8 years ago
POSTED BY: S G
4 Replies
Posted 8 years ago

Thanks for the suggestion. Would this problem be there even if I am doing "Quit Kernel" ? As you suggested, I included Clear[m, k], deleted all o/p and did "Quit Kernel", but problem persists !! Please have a look at atached file. Thanks

POSTED BY: S G
Posted 8 years ago

Please find the attached file, it has the o/p which I am getting after rerunning the code. Pl see the last o/p Thanks

POSTED BY: S G

The first time you run the code, the global variable m has no value. At the end of the loop, m has the value 6. If you rerun the code, the command SEM[m - 1] - SEM[m] behaves differently than before. If that is a problem for you, just add Clear[m,k] at the start of the code.

POSTED BY: Gianluca Gorni

Sorry, I cannot reproduce the problem. The output is the same every time I run the code, after saving.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard