Home > Source > Helper > get_parameters_from_user.m

get_parameters_from_user

PURPOSE ^

==============================================================

SYNOPSIS ^

function [n_sets, n_iterations, n_images, image_width] = get_parameters_from_user(settings)

DESCRIPTION ^

 ==============================================================
 GET_PARAMETERS_FROM_USER:

 

    GENERAL

      

    INPUT/S

      -

      -
           
    OUTPUT/S

      -

      -

    PENDING WORK

      -

    KNOWN BUG/S

      -

    COMMENT/S

      -

    RELATED FUNCTION/S

      

    ABOUT

      -Created:     February 16th, 2004
      -Last update: February 16th, 2004
      -Revision:    0.0.1
      -Author:      R. S. Schestowitz, University of Manchester
 ==============================================================

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [n_sets, n_iterations, n_images, image_width] = get_parameters_from_user(settings)
0002 % ==============================================================
0003 % GET_PARAMETERS_FROM_USER:
0004 %
0005 %
0006 %
0007 %    GENERAL
0008 %
0009 %
0010 %
0011 %    INPUT/S
0012 %
0013 %      -
0014 %
0015 %      -
0016 %
0017 %    OUTPUT/S
0018 %
0019 %      -
0020 %
0021 %      -
0022 %
0023 %    PENDING WORK
0024 %
0025 %      -
0026 %
0027 %    KNOWN BUG/S
0028 %
0029 %      -
0030 %
0031 %    COMMENT/S
0032 %
0033 %      -
0034 %
0035 %    RELATED FUNCTION/S
0036 %
0037 %
0038 %
0039 %    ABOUT
0040 %
0041 %      -Created:     February 16th, 2004
0042 %      -Last update: February 16th, 2004
0043 %      -Revision:    0.0.1
0044 %      -Author:      R. S. Schestowitz, University of Manchester
0045 % ==============================================================
0046 if (strcmp(settings, 'Default')),
0047  choice = menu('Choose number of sets',1,5,10);
0048  if (choice == 1),
0049    n_sets = 1;
0050  elseif (choice == 2)
0051    n_sets = 5;
0052  elseif (choice == 3)
0053    n_sets = 10;
0054  end  
0055  
0056  choice = menu('Choose number of iterations',1,5,10,20,50,200,1000);
0057  if (choice == 1),
0058    n_iterations = 1;
0059  elseif (choice == 2)
0060    n_iterations = 5; 
0061  elseif (choice == 3)
0062    n_iterations = 10;
0063  elseif (choice == 4)
0064    n_iterations = 20; 
0065  elseif (choice == 5)
0066    n_iterations = 50;
0067  elseif (choice == 6)
0068    n_iterations = 200;  
0069  elseif (choice == 7)
0070    n_iterations = 1000;
0071  end  
0072  
0073  choice = menu('Choose number of images',2,3,4,5,10,20);
0074  if (choice == 1),
0075    n_images = 2;
0076  elseif (choice == 2)
0077    n_images = 3;  
0078  elseif (choice == 3)
0079    n_images = 4;  
0080  elseif (choice == 4)
0081    n_images = 5; 
0082  elseif (choice == 5)
0083    n_images = 10;
0084  elseif (choice == 6)
0085    n_images = 20;
0086    
0087  end 
0088  
0089  choice = menu('Choose data width',50,100,200,500,1000);
0090  if (choice == 1),
0091    image_width = 50;
0092  elseif (choice == 2)
0093    image_width = 100; 
0094  elseif (choice == 3)
0095    image_width = 200;
0096  elseif (choice == 4)
0097    image_width = 500;  
0098  elseif (choice == 5)
0099    image_width = 1000;  
0100  end
0101 end

Generated on Thu 13-May-2004 18:00:46 by m2html © 2003