Mercurial > forge
changeset 12634:12ffde842c1f octave-forge
reduce risk to overwrite users variable in PKD_DEL
author | abarth93 |
---|---|
date | Wed, 10 Jun 2015 14:58:33 +0000 |
parents | db98a008d9f1 |
children | f2cf7070ccb5 |
files | main/octcdf/PKG_DEL |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/main/octcdf/PKG_DEL Wed Jun 10 14:50:50 2015 +0000 +++ b/main/octcdf/PKG_DEL Wed Jun 10 14:58:33 2015 +0000 @@ -1,10 +1,13 @@ -funnames = {"ncclose","ncredef","ncenddef","ncsync","ncvar","ncatt",... +OCTCDF_funnames = {"ncclose","ncredef","ncenddef","ncsync","ncvar","ncatt",... "ncdim","ncname","ncdatatype","ncautonan","ncautoscale","ncisrecord"}; -for i = 1:length(funnames) +for OCTCDF_i = 1:length(OCTCDF_funnames) try - autoload (funnames{i}, fullfile (fileparts (mfilename ("fullpath")), "netcdf.oct"),'remove'); + autoload (OCTCDF_funnames{OCTCDF_i}, ... + fullfile (fileparts (mfilename ("fullpath")), "netcdf.oct"),'remove'); catch end -end \ No newline at end of file +end + +clear OCTCDF_funnames OCTCDF_i \ No newline at end of file