diff options
Diffstat (limited to 'psr')
-rw-r--r-- | psr/data_file_name.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psr/data_file_name.m b/psr/data_file_name.m new file mode 100644 index 0000000..5d6e106 --- /dev/null +++ b/psr/data_file_name.m @@ -0,0 +1,5 @@ +function fname=data_file_name(prefix, title, suffix, B_field, theta,phi,psi_el) + str_title=sprintf("%s B field=%.5f Gauss, ellipticity=%.2f rad, theta=%.2f, phi=%.2f", title, B_field, psi_el, theta, phi); + fname=strcat(prefix, str_title, '.', suffix); +endfunction + |