Hi
László,
I think I can also help.
The syntax you are using would work if
Xenrp_dBm and
Xenrp_Std were scalars. For vectors you need to pass the covariance matrix instead of the standard deviation.
Since your measurements results are independent from each other, you could initialize each element separately:
>
Xenrp = unc(zeros(size(Xenrp_dBm)));
> for ii = 1:numel(Xenrp_dBm)
>
Xenrp(ii) = unc(Xenrp_dBm(ii),
Xenrp_Std(ii));
> end
Or you could create the vector with a diagonal covariance matrix. Not that you must take the square of the standard deviations. This method should be faster, as it has less overhead.
> Xenrp
= unc(Xenrp_dBm,
diag(Xenrp_Std.^2));
Regards,
Dion