Matlab - Unable to run the whole program completely

Hi,
I have encountered the following error while running one mine matlab script.
Attached contain a screenshot of the error: https://www.dropbox.com/s/ll0c7h8q3huy5gc/Capture.JPG
I have previously encountered the same issues. But after working on a while, I manage to resolve it. But today, I still encountered the same issue. I have check the following:
  1. Item one: the read and write access of the output folder
  2. Item two: the file directory.
Question: Is is normal for matlab to be working on a particular occasion and fail to run on another? I have tried a couple of time, but to no avail.
Regards
Ben

2 Comments

What is the error? I can't get your link to work. Regarding your question do you really expect us to say that it's normal for MATLAB to just run at random times and fail at other random times running the same code on the same data for no reasons whatsoever? If you have a problem with MATLAB itself crashing, then call tech support. Otherwise, if it's a problem with your code, let's see the error message. Copy and paste it right here.
It would be more convenient, when you post the message as text instead of linking to a screenshot. E.g. the screenshot does not contain the command, which causes the error, or it does and it is only me who is not able to find it.

Sign in to comment.

Answers (2)

It is normal for MS Windows to work sometimes and then fail later, if you have automatic security patch installation turned on.

1 Comment

I cannot confirm this. I think it is normal for MS Windows not to work sometimes and then work later.

Sign in to comment.

Jan
Jan on 18 Jan 2013
Edited: Jan on 18 Jan 2013
No, it is not normal for Matlab to fail for random reasons. Whenever I have seen Matlab failing or a user in a forum has described errors, there have been deterministic explanations.
The only exception was SUM for large arrays in 2009a, which adds the result of partial sums in the order the corresponding threads are finished. But here you did not get an error, but deviations between different calculations.
Therefore I suggest to read the error message and find the reason for the failure, then fix it.
When you work with files, be sure to use absolute file names, because the current directory is volatile, e.g. a callback of a GUI or a TIMER can change it unexpectedly.

Categories

Products

Tags

Asked:

on 17 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!