Error in MatLab's own routine.

조회 수: 1 (최근 30일)
Gavin
Gavin 2024년 9월 19일
댓글: Steven Lord 2024년 9월 23일
How can I possibly fix this?
Warning: The following error was caught while executing 'onCleanup' class
destructor:
Brace indexing is not supported for variables of this type.
Error in cell2mat (line 36)
if isnumeric(c{1}) || ischar(c{1}) || islogical(c{1}) || isstruct(c{1})
Error in onCleanup/delete (line 25)
obj.task();
No error was generated in the App Designer window, just the main command window. No reference to my code. I don't use cells if I can help it and wouldn't convert one to a matrix.
Time to upgrade to 2024b?
Hmmm it doesn't replicate when I run my program again.
  댓글 수: 1
Jatin
Jatin 2024년 9월 19일
Hi @Gavin,
Could you provide your code or the steps to reproduce the issue so that the community can come up with a solution.

댓글을 달려면 로그인하십시오.

채택된 답변

Gavin
Gavin 2024년 9월 23일
Confusion between {} () and [] and when to use commas between elements and if they need quotation marks or not and if so ' ' or " ".
MATLAB is compicated and picky and doesn't always throw good error messages; but eventually it makes sense and this forum is a great place to get help. But ask Google first, there may be an answer. MATLAB's own search will give you a bunch of complex and irrelevant answers to simple questions.
I'm answering this so it isn't left hanging. I hope this helps some noobies.
  댓글 수: 1
Steven Lord
Steven Lord 2024년 9월 23일
Can you show us the call to the onCleanup function in your code? I'm guessing this error occurred when MATLAB was exiting a callback function, and if so please show us that onCleanup call (or those onCleanup calls) and what the classes and sizes were of the data used in the expressions used in the call(s).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by