How to set data in next row of MATLAB GUI table?

6 views (last 30 days)
It only sets data in first row of data where as i want to set next iteration data in next row of table
while(diffv2 && diffv3 >= 0.00001)
v2old=v2;
v3old=v3;
for k=1:20
iter = iter+1;
v2= (( p2-q2 )/conj(v2)-((-y12*v1)+(-y23*v3)) ) / y22 ;
v3= (( p3-q3 )/conj(v3)-((-y13*v1)+(-y32*v2)) ) / y33 ;
%% Realted to gui table %%
data= {v2 v3};
set(handles.table,'Data',data);
X = ['The iteration number is ',num2str(iter)];
display(X);
display([v2 v3]);
break
end

Answers (1)

Cris LaPierre
Cris LaPierre on 5 Dec 2020
Probably this has to do with the break command you have at the end of your for loop. You should read what this function does. In short, k onely ever equals 1.

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!