%%% Saving Redeye Matrix %% Save to Matrix RNC = [y... year m... month d... day f... functional response Rkap... fraction allocated to growth T1D(d) ... water temperature TK(d)... water temperature in Kelvin RL(d)... RLv(d)... RW_dw(d)... RW_ww(d)... RE(d)... Reserve RV(d)... Structure REH(d)... Maturity RER(d)... Reproductive buffer RO_Dev(d)... Oocyte development time RBatchN(d)... RE_Gam(d)... Energy allocated to Gametes RE_Batch(d) ... RW_GON(d)... REden(d)... RK_ful(d)... RGSI(d)... RpA(d)... RpC(d)... RpG(d)... RpMr(d)... RpJ(d)... RpR(d)... RpR2(d)... RpM2(d)... RpM3(d)... RE_G... Rp_Am(d)... Rp_M(d)... Rp_Xm(d)... RE_m... Rv(d)... Rc_T(d)... RDR(d)... RSA(d)... REnergy(d)... Starve(d)... Spawn]; %hdrR = {'Year' 'Day' 'f' 'k' 'Temp' 'RE(d)' 'RV(d)' 'REv(d)' 'REH(d)' 'RO_Dev(d)' ... % 'RER(d)' 'RE_Gam(d)' 'RE_Batch(d)' 'Length' 'Dry_Weight' 'Wet_Weight' ... % 'Gonad_Weight' 'REd(d)' 'RK_ful(d)' 'GSI' 'Starve' 'Atresia'}; %% Write Matrix to file %% First Part set up in experiments %hdrR = {'Year' 'Day' 'f' 'k' 'RE(d)' 'RV(d)' 'REv(d)' 'REH(d)' 'RO_Dev(d)' 'RER(d)' 'RE_Gam(d)' ... % 'RE_Batch(d)' 'Length' 'Dry_Weight' 'Wet_Weight' 'Gonad_Weight' 'REd(d)' 'RK_ful(d)' 'GSI' 'Starve'}; %fname = 'Redeye.csv'; %txt=sprintf('%s,', hdrR{:}); %txt(end)=''; %dlmwrite(fname,txt,''); %% Write the data to file for each iteration dlmwrite(['D:\UCT\PhD\Model output\',fname], RNC, '-append'); %Mat = {Head,ANC}; %xlswrite(ename,ANC); %% Write Output to window %type(fname);