필터 지우기
필터 지우기

How could I insert values from a vector into a GUI table like individual rows?

조회 수: 1 (최근 30일)
Nat
Nat 2017년 10월 15일
편집: Nat 2017년 10월 15일
I have the next code in my .m file:
v=0:1:primeunid;
pc=mod(v.^2,primeunid);
dnfinal=pc*dfinal;
set(handles.vprintout,'String',pc);
set(handles.SnFinalOut,'String',dnfinal);
data1=num2str(pc);
data2=num2str(dnfinal);
datos=get(handles.QRDUTABLE,'Data');
if isempty(datos)
datos{1,1}=data1;
datos{1,2}=data2;
else
datos{end+1,1}=data1;
datos{end,2}=data2;
end
set(handles.QRDUTABLE,'Data',datos);
end
Yeah, in fact... my code it really works and you can print values but I want that pc and dnfinal add a new value in rows. If a run the code, It makes the proccess but print all the values into a single GUI Table cell, like in the next picture:

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by