Nov 20, 2009 #1 R rk243491 Newbie level 1 Joined Nov 20, 2009 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location india Activity points 1,287 mat lab coding hi ! i want write a mat lab code for can anybody help me for G1,i have to take these values. is that correct procedure to write in mat lab ?plz reply me . G1=[1/400000 1/100000 1/70000 1/40000 1/10000 1/7000 1/4000 1/1000 1/700 1/400 1/100 1/70 ] for i=1:12; G= G1(i) ; sim('agc11');
mat lab coding hi ! i want write a mat lab code for can anybody help me for G1,i have to take these values. is that correct procedure to write in mat lab ?plz reply me . G1=[1/400000 1/100000 1/70000 1/40000 1/10000 1/7000 1/4000 1/1000 1/700 1/400 1/100 1/70 ] for i=1:12; G= G1(i) ; sim('agc11');
Nov 20, 2009 #2 J JoannesPaulus Advanced Member level 3 Joined Mar 19, 2008 Messages 773 Helped 235 Reputation 470 Reaction score 138 Trophy points 1,323 Location USA Activity points 5,006 Re: mat lab coding you need to add "end" at the end of the for loop. Code: G1=[1/400000 1/100000 1/70000 1/40000 1/10000 1/7000 1/4000 1/1000 1/700 1/400 1/100 1/70 ] for i=1:12 G= G1(i); sim('agc11'); end I hope it helps.
Re: mat lab coding you need to add "end" at the end of the for loop. Code: G1=[1/400000 1/100000 1/70000 1/40000 1/10000 1/7000 1/4000 1/1000 1/700 1/400 1/100 1/70 ] for i=1:12 G= G1(i); sim('agc11'); end I hope it helps.
Nov 21, 2009 #3 g.s.javed Member level 1 Joined Oct 10, 2008 Messages 37 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Location Bangalore Activity points 1,539 mat lab coding Its the format for i=1:12 ... ... ... end It can take these values, but preferably keep with decimal numbers than with fractions. It is beneficial.
mat lab coding Its the format for i=1:12 ... ... ... end It can take these values, but preferably keep with decimal numbers than with fractions. It is beneficial.