Matlab curly brackets and a dot

Hi,
first time i have seen it, i would like to know what it means:
variable{place?}.other_variable=some number
from the code itself:

2 Comments

Stephen23
Stephen23 on 11 Aug 2021
Edited: Stephen23 on 11 Aug 2021
MATLAB has more than just numeric arrays:
Curly braces could refer to a table or a cell array.
Dot indexing could refer to a table or a structure array.
In either case, more efficient data design would likely use one non-scalar structure (or one table), rather than nesting lots of separate scalar structures inside a cell arrray. Inefficient data design like that should not be copied.

Sign in to comment.

Answers (0)

Categories

Asked:

on 11 Aug 2021

Edited:

on 11 Aug 2021

Community Treasure Hunt

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

Start Hunting!