diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2010-07-10 11:00:29 +0000 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2010-07-10 11:00:29 +0000 |
commit | bbee2fe72142d909e87971d5b8f34d1870cc52a6 (patch) | |
tree | a83858faea93ee2b6d3745a17fbdfd5f065ec0dd | |
parent | b7fb88961958b1932cbc7cd771b34f05b807113f (diff) | |
download | multi_mode_eit-bbee2fe72142d909e87971d5b8f34d1870cc52a6.tar.gz multi_mode_eit-bbee2fe72142d909e87971d5b8f34d1870cc52a6.zip |
added data fname creating function
-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 + |