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!