How do you define a structure array?

2 views (last 30 days)
Brianna Miranda
Brianna Miranda on 26 Oct 2021
Commented: Walter Roberson on 26 Oct 2021
I have a function that defines the following variables:
xmin = procPar.xmin;
tmin = procPar.tmin;
fmin = procPar.fmin;
I'm using this:
procPar.xmin = Dsifile.th{1}(37,1);
procPar.tmin = Dsifile.fh{1}(1,9);
procPar.fmin = 10;
but I'm getting an error that says "Dot indexing not supported for variables of this type"
  3 Comments
Walter Roberson
Walter Roberson on 26 Oct 2021
What is size(procPar) ? What is class(procPar) ?

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 26 Oct 2021
Possibly procPar already exists but is not a struct or table already.
Possibly Dsifile exists but is not a struct or table.

Community Treasure Hunt

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

Start Hunting!

Translated by