editing userclass crashes matlab
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I have a userclass called insert.m which overload subsref/subsassgn. Below the classdef block, I have a function called DEMO which is NEVER called (only containing exemple code).
When I include the line [x=[];x.a= insert(1:10);] in this DEMO subfunction, Matlab crashes as soon as I try to use my class insert, and even [edit insert] crashes !! When I remove the line, everything works as expected, even if I write [x=[];x.a= insert(1:10);] in the command window.
This sounds weird as the buggy line is never executed, and is syntaxically correct. Is there any constraint on an overloaded subsref/subsassgin for an instance to be stored as a field in some struct ? Are there any other explanations ?
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!