Hi
can you please help me with this problem . i want to get two variable change in same time with one another variable . for example i have three variable (A,B,C)i want B and C change at each A . when i run this code gives me error in defined third variable
clear allclcAA=[1 2 3];BB=[4 5 6];CC=[7 8 9];for ii=1:1:length(AA)for jj=1:1:length(BB)& kk=1:1:length(CC)A=AA(ii);B=BB(jj);C=CC(kk);x=[A,B,C]endend
in final i want x give in each loop
X=[1 4 7]X=[1 5 8]X=[1 6 9X=[2 4 7]X=[2 5 8]X=[2 6 9]X=[3 4 7]X=[3 5 8]X=[3 6 9]
thank you for your helping
Best Answer