Function definitions are not permitted in this context.
1 view (last 30 days)
function out = iri2016(time, latitude, longitude, height, utc, coord, ...
curldir, Rz12, IG12, f10_7_daily, f10_7_81day, tec_hmax, ne_top, ...
fpeak, f2storm, fpeak_height, bottom, f1_prob, auroral_boundary, ...
foE_storm, Ne_Dreg, Te_top, ioncomp, NmF2_foF2, hmF2_M3000F2, ...
NmE_foE, hmE, B0)
% IRI2016 International Reference Ionosphere 2016 output parameters.
[edit Rik: rest of file moved to attachment]
Rik on 4 May 2020
You put a line of code before the first function. You can only do that if you intend your file to work as a script, and if you close all functions with the end keyword. You seem to be doing neither.
You should remove the cd line from your file.