Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
unique function in uitable matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!