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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by