Error using 'readstruct'

1 回表示 (過去 30 日間)
Jelani Simeon
Jelani Simeon 2022 年 8 月 15 日
回答済み: Bhavana Ravirala 2022 年 8 月 25 日
Error using readstruct
Naming a class 'struct' is not allowed, because it is already a built-in class.
Im not sure why im getting this error. It was working fine a week ago now this error wont allow me to move forward.
  1 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 8 月 15 日
Can you post some sample code producing the error?

サインインしてコメントする。

回答 (1 件)

Bhavana Ravirala
Bhavana Ravirala 2022 年 8 月 25 日
Hi,
As per my understanding, a potential cause of this error is the fact that there is an inbuilt function named “struct” in MATLAB. In order to resolve the issue, you should try using a different name for the class while using “readstruct”.
Hope this helps!!

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by