Matlab is not working

3 次查看(过去 30 天)
Laura Ristea
Laura Ristea 2024-1-28
Every time i open Matlab i get multilple errors in the command window.I tried several time to uninstall and install it again but nothing.And yestarday it was working perfectly fine.I didn't make any updates on the pc.
Warning: Function saveobj has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function set has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function sign has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function sin has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Warning: Function sinh has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function size has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function sort has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function sparse has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function sqrt has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function subsasgn has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function subsref has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name
conflict.
Warning: Function sum has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
Unrecognized method, property, or field 'dim' for class 'message.internal.Subscription'.
  1 个评论
Matt J
Matt J 2024-1-28
编辑:Matt J 2024-1-28
Did you do a clean reinstall, i.e., where you completely erase the Matlab installation folder prior to reinstalling?
In any case, show us the result of,
whos -all saveobj

请先登录,再进行评论。

回答(1 个)

Pavan Sahith
Pavan Sahith 2024-2-6
Hello Laura,
It seems like you have shadowed some built-in MATLAB functions with your own functions or scripts. This might be causing MATLAB to issue warnings about potential conflicts with the built-in functions.
Here are few suggestions to help resolve the issue:
Rename your custom scripts or functions to something unique names that doesn't conflict with the built-in function.Save the changes and restart MATLAB.
As Matt mentioned in the comment section, consider seeing what these commands ''which -all saveobj ","which -all set",etc return.
There is also a chance of MATLAB path being corrupt or else contains reference to a different MATLAB installation as well.
  • Start up the new MATLAB, and when you get a prompt, give the command "pathtool".
  • When it brings up the box listing the paths, go down to the lower right and click on 'Default'. Then click to Save the change. You can then cross-check by exiting MATLAB and starting it up again.
If the issue still persists, you can contact the MathWorks Technical Support.
Hope it helps.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by