All figure backgrounds became black with white axes.

16 ビュー (過去 30 日間)
helgifj
helgifj 2012 年 11 月 8 日
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

採用された回答

Richard Quist
Richard Quist 2012 年 11 月 8 日
編集済み: Richard Quist 2012 年 11 月 8 日
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.
  1 件のコメント
helgifj
helgifj 2012 年 11 月 12 日
It worked, thank you very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by