Error using closereq while trying to capture a Data Matrix

조회 수: 2 (최근 30일)
Jacobo
Jacobo 2024년 2월 28일
댓글: Jacobo 2024년 3월 4일
I'm using a live script that gets it data from a table generated in a UI and generates a matrix after closing the UI figure.
All was working good until suddenly I go the message:
Error using closereq
Error while evaluating Table DeleteFcn.
Here is my code:
core_data = zeros([rows, cols]); % Rows and cols are defined using the slider.
%% Make Table
uT = uitable;
uT.ColumnName = {'Flux' 'Frequency' 'Power'};
uT.Position = [100 100 275 260];
uT.Data = core_data;
uT.ColumnEditable = true;
uT.DeleteFcn = @getTableData;
waitfor(uT); % Waits for table to close
the offensive line is at uT.DeleteFcn = @getTableData
Do someone knows how to fix this??
  댓글 수: 2
Angelo Yeo
Angelo Yeo 2024년 3월 3일
And, how do you define getTableData? I can't reproduce the issue only with the code you shared.
If you would, it's best to share the live script with the issue.
Jacobo
Jacobo 2024년 3월 4일
Hello Angelo, thank you for your response.
I used the following link for this action:
I experimented with Approach 1 and all works fine, but table had not header and didn't look so well, so I used the recommened Approach 2,
Not capturing the data and giving the mentioned error.
I'm just stuck on that by the moment (now I'm keeping using Approach 1 "openvar").

댓글을 달려면 로그인하십시오.

답변 (0개)

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by