Error using 'readstruct'

6 次查看(过去 30 天)
Jelani Simeon
Jelani Simeon 2022-8-15
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 个)

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 CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by