Struct contents reference from a non-struct array object `
조회 수: 3 (최근 30일)
이전 댓글 표시
I'm converting a script into function and getting the following error:
Struct contents reference from a non-struct array object.
Error in button_callback_2 (line 16)
out=cellfun(@str2num,myData.toArray.cell,'un',0)';
Error while evaluating UIControl Callback.
The class of myData is a java.util.vector
Without making function, the script does the intended work.
댓글 수: 0
채택된 답변
Image Analyst
2017년 9월 12일
I don't know what myData is, but if it's an edit field on your GUI created with GUIDE, then to get the string in it, you can do
out = handles.myData.String;
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!