VPAsolve with measurement error
1 回表示 (過去 30 日間)
古いコメントを表示
Hello everybody
I have a question. I have to found a complexe number from an equation and the result of an experiment.
I have the measuremment of E, E0. k is a frequency vector, d the thickness of the sample used.
!! E, E0, n are complexe!!

I solve it with with a vpasolve in a for loop, Ratio = E/E0
for kk=:length(k)
syms x y
A =(4.*(x+i*y));
B= 1+(x+i*y) ;
C=exp(i.*k(kk) .*d ;
eqn=(A)./B.*C;
eqn1= real(eqn)== real(Ratio(p));
eqn2= imag(eqn)== -imag(Ratio(p));
varLimits = [0.1 10; 0 4];
S = vpasolve([eqn1 eqn2 ],x,y,varLimits);
end
It's working really well, BUT, d is not perfectly defined, at 10%, that gives me a huge range of x and y.
How can I add this error during the solving?
The derivation of my equation with d?

Regards
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!