Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

mat lab coding - help needed with loop

Status
Not open for further replies.

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');
 

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.
 

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.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top