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 commentaire

Jan
Jan le 22 Sep 2017
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.

Connectez-vous pour commenter.

Réponses (2)

Fangjun Jiang
Fangjun Jiang le 20 Sep 2017

1 vote

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 commentaires

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 le 22 Sep 2017
There is no 32 bit version or R2017a, such that there cannot be a confusion of the Matlab versions.

Connectez-vous pour commenter.

Jan
Jan le 22 Sep 2017

0 votes

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 commentaire

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!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Question posée :

le 20 Sep 2017

Commenté :

le 22 Sep 2017

Community Treasure Hunt

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

Start Hunting!

Translated by