Access to GUI plot data using GUIDE
이전 댓글 표시
Hi guys,
I'm creating my very first GUI using GUIDE for a DAQ application. I am able to pull the data sets from the instrument, place them in different handles and plot each or all of them using different push buttons.
However, I would like to be able to place the acquired data passed to handles that was plotted into an array to eventually write it to an excel worksheet. I have the function for the "Save Data" button at the end of the program. I have tried a few options to save the array, but my program stores the entire sturcture and I get an error code when trying to load it. Error message: Warning: Unable to load .NET object. Saving (serializing) .NET objects into a MAT-file is not supported.
I am open to suggestions.
Thanks so much.
댓글 수: 5
What are you actually trying to save when you get that error? Don't save the handles structure. Pull your data out of it into its own variable and save only that variable as e.g.
save( 'someFullPath\someFile.mat', 'myData' );
George Diamond
2019년 2월 14일
Adam Danz
2019년 2월 14일
What is the value of handles.C? Could you share a sample of that data so we can see it?
Walter Roberson
2019년 2월 14일
handles.C does not appear to be a graphics object so you should not get() it.
You might be accidentally doing get(0) and 0 is the graphics root object .
George Diamond
2019년 2월 14일
편집: George Diamond
2019년 2월 14일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



