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 comentario

Jan
Jan el 22 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (2)

Fangjun Jiang
Fangjun Jiang el 20 de Sept. de 2017
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 comentarios

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

Iniciar sesión para comentar.

Jan
Jan el 22 de Sept. de 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.

1 comentario

Ye Chen
Ye Chen el 22 de Sept. de 2017
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!

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Sept. de 2017

Comentada:

el 22 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by