How do you define a structure array?
古いコメントを表示
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 件のコメント
Kevin Holly
2021 年 10 月 26 日
What line are you getting the error?
Does it have to do with Dsifile? Does Dsifile have both th and fh as options?
Brianna Miranda
2021 年 10 月 26 日
Walter Roberson
2021 年 10 月 26 日
What is size(procPar) ? What is class(procPar) ?
回答 (1 件)
Walter Roberson
2021 年 10 月 26 日
0 投票
Possibly procPar already exists but is not a struct or table already.
Possibly Dsifile exists but is not a struct or table.
カテゴリ
ヘルプ センター および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!