I am getting error messages when starting MatLab

I am not sure if there was a Windows update preceding this. However, re-installing MatLab did not change, i still got these error messages. I am getting these since i wanted to use the FlyFly toolbox https://hoverflyvision.weebly.com/software.html.These are the error messages i get:
"Dot indexing is not supported for variables of this type.
Error in settings>settings_OpeningFcn (line 73)
index = navData.activeStim;
Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
Error in settings (line 46)
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
Error in matlab.internal.codingui.warmupProgrammingAids"

Antworten (2)

ag
ag am 13 Apr. 2025
Hi Fabian,
The error message "Dot indexing is not supported for variables of this type" typically occurs when attempting to access a field in a variable that is either not a structure or the respective field name does not exist within the structure.
To resolve this issue, you should first verify that the field exists within the structure variable before attempting to access it. The following code snippet illustrates how to achieve this:
if(isfield(navData, 'activeStim')) %here navData is the structure name, and activeStim is the field name
%rest of the code
end
For more details, please refer to the following MathWorks documentation: https://www.mathworks.com/help/matlab/ref/isfield.html.
Hope this helps!

2 Kommentare

Voss
Voss am 13 Apr. 2025

"or the respective field name does not exist within the structure"

That situation would produce a different error ("Unrecognized field name ...").

"Dot indexing is not supported for variables of this type" often (but not always) means that the underlying variable was unexpectedly assigned the null value, [ ]

Melden Sie sich an, um zu kommentieren.

Steven Lord
Steven Lord am 13 Apr. 2025

0 Stimmen

It seems like that software included a function (an app) named settings. That conflicts with the settings function in MATLAB introduced in release R2018a. That app will need to be renamed.

1 Kommentar

Steven
Steven am 3 Jun. 2026
Many thanks Steven Lord (I remember the name from my MATLAB USENET days). Same issue here. I had a simple Simulink model in my startig directory that I'd names "settings.slx".

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2022a

Tags

Gefragt:

am 1 Apr. 2022

Kommentiert:

am 3 Jun. 2026

Community Treasure Hunt

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

Start Hunting!

Translated by