Réponse acceptée

Matthew Eicholtz
Matthew Eicholtz le 8 Mar 2016
Modifié(e) : Matthew Eicholtz le 8 Mar 2016

1 vote

It looks from your screenshot that you named your script 'image.m', is that correct? If so, try changing that filename because you may be causing problems with the built-in MATLAB function called 'image'.
In general, try to steer clear of calling variables or files by names that MATLAB uses for other things.

1 commentaire

piyanat chansong
piyanat chansong le 8 Mar 2016
Thank you so much, I just found out that I have a filename "image.m" in my matlab folder and I finally deleted it, now imshow works.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Centre d'aide 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