All figure backgrounds became black with white axes.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi. All of a sudden all of the figures and graphs I plot in Matlab turn up with a completely black background and white axes. As far as I know I did not press any buttons or write a command that made it happen. The graphs are legible but if I try to save them as an image file, e.g. JPEG then only the plot it self is displayed, without any axes or background, so it is suspended in midair. I have tried everything that came to mind, I have used restarted Matlab and tried using the commands "whitebg" and "colordef white" but Matlab did not recognize those commands and gives the following errors: >> whitebg ??? Attempt to execute SCRIPT dot as a function: C:\Users\Helgi\Documents\MATLAB\dot.m
Error in ==> whitebg at 98 lum = dot([.298936021 .58704307445 .114020904255],c(k,:));
>> colordef white ??? Attempt to execute SCRIPT dot as a function: C:\Users\Helgi\Documents\MATLAB\dot.m
Error in ==> whitebg at 98 lum = dot([.298936021 .58704307445 .114020904255],c(k,:));
Error in ==> colordef>wdefault at 128 whitebg(fig,[1 1 1])
Error in ==> colordef at 75 wdefault(fig)
I am using a Dell Inspiron 1525 computer with Windows 7 installed. If anyone knows how to solve this problem I would be ever so grateful. Thank you
0 commentaires
Réponse acceptée
Richard Quist
le 8 Nov 2012
Modifié(e) : Richard Quist
le 8 Nov 2012
The clue is in the error message:
Error in ==> whitebg at 98 lum = dot([.298936021 .58704307445 .114020904255],c(k,:));
>> colordef white ??? Attempt to execute SCRIPT dot as a function: *C:\Users\Helgi\Documents\MATLAB\dot.m
You have a file named dot.m (C:\Users\Helgi\Documents\MATLAB\dot.m) that is overriding the MATLAB function of the same name.
Rename your file/function and then restart MATLAB.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Colormaps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!