Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Nat
Nat am 15 Okt. 2017
Bearbeitet: Nat am 15 Okt. 2017
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:

Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by