MATLAB crashs when struct index line is too long
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
André
am 25 Jun. 2018
Beantwortet: Steven Lord
am 25 Jun. 2018
Hello. Somewhere in my script there is a line like this:
a = ZData.upsample.(feature2plot).center.(lower(H.BUTTONGOUP_Map_Opts_Surf3d.SelectedObject.String))(D.hexnums.upsample==1)
When I run the script or even try to put there a breakpoint, MATLAB crashes. Error message in attached file. However, if I put the code in 2 lines, like this:
a = ZData.upsample.(feature2plot).center;
a.(lower(H.BUTTONGOUP_Map_Opts_Surf3d.SelectedObject.String))(D.hexnums.upsample==1);
then MATLAB doesn't crash anymore. Why does MATLAB crash? Is it because the line is too long?
Regards, André
0 Kommentare
Akzeptierte Antwort
Steven Lord
am 25 Jun. 2018
I recommend following the instruction at the end of the crash log file.
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!