Hi Michael,
Is it possible to create a complex uncertainty vector that grows in size within a For loop?
For example, I am calculating frequency-dependent complex uncertainties for S-parameters. As I loop through the frequencies, I want the S-parameter vector size to increase by one each time, so I can store the frequency-dependent result in one variable. Ideally, I would like to be able to do something like this:
unc = @LinProp;
value = complex(rand(10,1),rand(10,1));
u_abs = rand(10,1);
u_angle = 10*rand(10,1)*pi/180;
for index = 1:length(value)
s11(index,1) = unc(abs(value(index)),u_abs(index))*exp(1i*unc(angle(value(index)),u_angle(index)))
end
Thanks,
Jimmy
unc = @LinProp;
value = complex(rand(10,1),rand(10,1));
u_abs = rand(10,1);
u_angle = 10*rand(10,1)*pi/180;
for index = 1:length(value)
s11(index,1) = unc(abs(value(index)),u_abs(index))*exp(1i*unc(angle(value(index)),u_angle(index)))
end