필터 지우기
필터 지우기

How to share relatively large data among GUI callbacks?

조회 수: 4 (최근 30일)
ZIAN ZHANG
ZIAN ZHANG 2023년 2월 16일
답변: Jan 2023년 2월 16일
My GUI application needs to access a database (about 50 MB, stored as a .mat file). Currently, I store the data in the gui handles and use 'guidata' to update the data. However, it greatly slows down the speed of the GUI. Any solution to this problems? Thanks a lot!

답변 (1개)

Jan
Jan 2023년 2월 16일
50 MB is not a large array in times of Gigabytes of RAM. Sharing an array by guidata does not create deep copies, but Matlab uses an efficient Copy-on-Write method. In consequence it is not clear, what exactly slows down your code. Use the profiler to find the bottleneck and post a minimal working example, which reproduces the problem.

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by