Effacer les filtres
Effacer les filtres

How to solve Out of memory error in MATLAB?

2 vues (au cours des 30 derniers jours)
krishna sravani
krishna sravani le 8 Mai 2017
Commenté : Jan le 9 Mai 2017
A=[10 20 30;14 15 18];
B=median(median(A));
this the code which i have been used for calculating median value of the matrix.....but i have got the following error...
Error using rjpg8c
Out of memory. Type HELP MEMORY for your options.
Error in readjpg (line 11) A = rjpg8c(filename); My laptop is cofigured with 3GB RAM...and I am using matlab 16a...Thanks for any help in advance
  4 commentaires
krishna sravani
krishna sravani le 8 Mai 2017
Error using rjpg8c Out of memory. Type HELP MEMORY for your options. Error in readjpg (line 11) A = rjpg8c(filename) this is the error which i got while executing it....
Jan
Jan le 9 Mai 2017
While executing what?

Connectez-vous pour commenter.

Réponse acceptée

Guillaume
Guillaume le 8 Mai 2017
rjpg8c and readjpg are functions called by imread when reading an 8-bit jpg image.
If you get an out of memory error in these functions, it must be because you're trying to read an image that takes too much memory for your machine. There's not much you can do about it other than adding more memory to your machine (or freeing memory used by other programs) or reading smaller images.
Note that this is absolutely nothing to do with the built-in matlab median function. If you get this error when calling median, it is thus because you've created your own median function in one of the folders on the path. If so, don't do that!
  1 commentaire
krishna sravani
krishna sravani le 9 Mai 2017
Exactly I have deleted another file with name median in my folder , then it is working.... thank you...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by