Clear Filters
Clear Filters

Error using 'readstruct'

4 views (last 30 days)
Jelani Simeon
Jelani Simeon on 15 Aug 2022
Answered: Bhavana Ravirala on 25 Aug 2022
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 Comment
Benjamin Thompson
Benjamin Thompson on 15 Aug 2022
Can you post some sample code producing the error?

Sign in to comment.

Answers (1)

Bhavana Ravirala
Bhavana Ravirala on 25 Aug 2022
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!!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!