From bbee2fe72142d909e87971d5b8f34d1870cc52a6 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Sat, 10 Jul 2010 11:00:29 +0000 Subject: added data fname creating function --- psr/data_file_name.m | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 psr/data_file_name.m (limited to 'psr') 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 + -- cgit v1.2.3