Some terms in the equation are coefficients , so if anyone answers this just give me the general idea and guidlines
I would like to know how i can calculate the sum of a curve
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Iasonas Vasios
am 23 Mär. 2021
Kommentiert: Iasonas Vasios
am 24 Mär. 2021
I need help on guiding me how i am going to calculate the following equation:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/560228/image.jpeg)
This is the mean x-ray photon fluence per unit DAK. I have my x-ray spectrum and i would like to calculate the φ0. I use trapz but the answer i get it is not right (maybe my spectrum isn't the exact as the paper's one. Also the following step is to calculate this equation where i think trapz is not going to help me:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/560233/image.jpeg)
I will attach my excel data in case they are going to help you understand what i am asking.
Akzeptierte Antwort
David Hill
am 23 Mär. 2021
If you load your two columns. Making E the first column and phi0 the second column. dE is 0.5
deltaE=0.5;
meanFluence=sum(phi0*deltaE);%just a descrete sum (I got:6.5710e+03)
g1=%similarly, although I don't know what the other terms are (dSe, u(E), uen(E))
Weitere Antworten (1)
William Rose
am 24 Mär. 2021
I assume column D of the workbook you attached is the
data.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/561188/image.png)
The spacing,
, is 0.5 keV for all samples.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/561193/image.png)
Assunming you have read the data in from the spreadhseet into variable phi0E:
deltaE=0.5;
phi0bar=sum(phi0E)*deltaE;
So if you just add up all the values that is not the right answer? What IS the right answer and what is the source of that right answer?
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!