My matlab gets an error when trying to plot anything

As the title says, this only happened recently and I'm not sure what triggered it.
I'm using Windows 64. This comes up every time I plot something:
Error using gca Can't load 'C:\Program Files\MATLAB\R2017a\bin\win64\osgserver.dll': C:\Program Files\MATLAB\R2017a\bin\win64\osgserver.dll is not a valid Win32 application.

1 件のコメント

Jan
Jan 2017 年 9 月 22 日
Did the contents of the file change? Compare it with your backup or the "Recent Versions". Try to re-install this file or the complete Matlab application.

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

回答 (2 件)

Fangjun Jiang
Fangjun Jiang 2017 年 9 月 20 日

1 投票

It looks like there is a mix up of files. The error message indicates it is looking for the 32-bit version of the MATLAB file. But the file pointed to is the 64-bit version. Do you have both the win32 and win64 version of MATLAB installed? What is the return value if you run "computer" in MATLAB?

2 件のコメント

Ye Chen
Ye Chen 2017 年 9 月 22 日
I'm not even sure there was even a choice, in the long list of downloads it simply said Matlab and then the version number. It was the same process for the mac so I didn't think much into it.
I also installed it only once, no reinstallations or anything.
Also here:
>> computer
ans =
'PCWIN64'
Jan
Jan 2017 年 9 月 22 日
There is no 32 bit version or R2017a, such that there cannot be a confusion of the Matlab versions.

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

Jan
Jan 2017 年 9 月 22 日

0 投票

Did the contents of the file change? Compare it with your backup or the "Recent Versions". Try to re-install this file or the complete Matlab application.

1 件のコメント

Ye Chen
Ye Chen 2017 年 9 月 22 日
The thread you have provided is unrelated, my matlab doesn't crash (only gives red text error of the text I provided). I also don't use an intel integrated graphics card.
I'll look to reinstalling the file or even the complete Matlab application and get back to you on that. Thanks!

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

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2017 年 9 月 20 日

コメント済み:

2017 年 9 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by