フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

unique function in uitable matlab

1 回表示 (過去 30 日間)
Yusran Said
Yusran Said 2017 年 9 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have program to display data in a uitable:
data_plat = load('Data_Plat.mat');
Database_All = data_plat.Database_All;
data2 = table2cell(Database_All(strcmpi(Database_All.Plat, final_output), ...
{'Plat', 'Nama', 'Jurusan', 'Status'}));
data2 = [get(handles.uitable1, 'Data'); data2];
[~,idx]=unique(cell2mat(data2),'rows');
unique_data2 = data2(idx,:);
set(handles.uitable1, 'Data', unique_data2);
final_output is a number computed by the program which always changes because the program is processing video.
when its starting, its doing normally, but when second data in(final_output), it get error message :
Error using cat Dimensions of matrices being concatenated are not consistent.
Error in cell2mat (line 78) m = cat(1,m{:});
Error in mpengujianbmpengujianbplay_Callback (line 222) T=cell2mat(data2);
when i run this code without unique funtion, its doing fine(no error message) but always replicate in table so i appending unique funtion to solve that, the question is what must i do, something wrong with my code(unique function) or add another function to solve my problem(replicate data in table)?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by