When i open Matlab i get this error massage: MATLAB:hg:​InvalidPro​perty

1 view (last 30 days)
Hello, When i open Matlab i get this error massage: Warning: Executing startup failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:hg:InvalidProperty There is no WindowsStyle property on the Figure class.
How can I fix it? thank a lot!
  1 Comment
Adam Danz
Adam Danz on 11 Sep 2018
Edited: Adam Danz on 11 Sep 2018
Check your startup.m file; are you producing a figure when you start matlab and/or are you setting a "WindowStyle" property?

Sign in to comment.

Answers (3)

Adam Danz
Adam Danz on 11 Sep 2018
Edited: Adam Danz on 11 Sep 2018
In your startup.m file, remove the 's' in window*s*.
INCORRECT:
set(0,'DefaultFigureWindowsStyle','docked')
CORRECT:
set(0,'DefaultFigureWindowStyle','docked')
Then close matlab and re-start it. Your startup file should run fine.

maor wainstein
maor wainstein on 11 Sep 2018
Thanks for your answer! This is my code (maybe there is your mean to "WindowStyle"?
cd C:\Users\yair\Documents\MATLAB\Personal; clc, disp('Work hard and have fun.'); beep off; addpath('C:\Users\yair\Documents\MATLAB\Personal') set(0,'DefaultFigureWindowsStyle','docked') set(0,'DefaultFigureColormap', jet), close all

maor wainstein
maor wainstein on 11 Sep 2018
I see that there is a big mass in the copy-paste of the code, so I attach print screen of the code. thanks for your answer!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!