Problems with "on error"
- July 20, 2010
- 4 replies
- 10906 views
I'm not realy familiar with Matcad but have some programming experiences.
For a Mathcad (MC13) user I have to program the fitting of a large number of spectra. There will be spectra with no real solution (non convergence) always - so I have to handle the error. Mathcad give the phrase "on error". I tried to include it in my programm but it gives some strange results. There will be the calculation of a vector hvec - without "on error" it ist a vector, with "on error" it is a scalar if there is not this "hvec <- guess" initial step on top of the program part.
I get normal results if I not include "on rrror" -> see "MC11 fano fit_SG without on error.mcd" (MC11) and "without on error.jpg"
Using "on error" hvec ist always the value off the initial step "hvec <- guess" if the4 calculation is ok, if there is an error hvec is that what I wrote left of "on error" -> see "MC11 fano fit_SG with on error.mcd" and "without on error.jpg".
What do I wrong?
Can someone help me?
Thanks
Arne

