Hi!
n=[0:0.01:0.5]; f=[2:0.01:3]; for k=1:length(n) for l=1:length(f) beta=n(k).*Dc/Dw omega=2e9*pi*f(l); epsilon=3./(1+j*omega*tau); epsilon_k(k,l)=(beta*(epsilon)+(1-beta)(epsilon_cc));end end
is there any advice to programm this without using for loops?
Thank you
EDIT CORRECTED PROGRAM:
Hi sorry. here is the corrected program.
n=[0:0.01:0.5]; f=[2:0.01:3];epsilon_cc=2 for k=1:length(n) for l=1:length(f) beta=n(k); omega=2e9*pi*f(l); epsilon=3./(1+j*omega*tau); epsilon_k(k,l)=(beta*(epsilon)+(1-beta)*(epsilon_cc))end end
thank you for your help!
Best Answer