Create single columns of elementwise means
Ältere Kommentare anzeigen
How would I compute the elementwise means of dark fields and flat fields, to get both a single dark field and a single flat field column to use in correction. I then need to apply the single dark mean and flat field mean for correcting the transmission data (X_proj).
X_dark = 2560x30 double
X_flat = 2560x200 double
X_proj = 2560x1500 double
My attempt for X_dark is below, does this look correct? How would I then apply it to correct the transmission data (X_proj)?
temp=zeros(2560,1);
for i=1:30
temp=temp+X_dark(:,i);
end
X_dark_avg=temp./30;
3 Kommentare
Stephen23
am 13 Mai 2021
"My attempt for X_dark is below, does this look correct?"
X_dark_avg = mean(X_dark,2)
Jan
am 14 Mai 2021
@Ryan Philips: It depends on what "applying" means here. Please explain, which mathematical operation you want to perform.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!