Error using 'readstruct'

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 comentario

Benjamin Thompson
Benjamin Thompson el 15 de Ag. de 2022
Can you post some sample code producing the error?

Iniciar sesión para comentar.

Respuestas (1)

Bhavana Ravirala
Bhavana Ravirala el 25 de Ag. de 2022

0 votos

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!!

Categorías

Productos

Versión

R2022a

Etiquetas

Preguntada:

el 15 de Ag. de 2022

Respondida:

el 25 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by