Hello,
First of, sorry if this is a novice question. I have a bunch of FITS files in my folder that I have to average. I decided to create a directory of them and then read them in a for loop as follows but at the end I get f as just the last FITS. How do I make f be created and contain all the FITS from the directory so it can be read by r (if possible)?
d = dir('capture_*.fit');for n = 1:length(d) f = d(n).name;endr = fitsread(f);
Thanks in advance, Kres
Best Answer