SET_XY_AXIS set the x-axis and y-axis values. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: SET_XY_AXIS set the x-axis and y-axis values. CALL: data = set_xy_axis (data, x, y); ao.data = set_xy_axis (ao.data, x, y); VERSION: $Id: set_xy_axis.m,v 1.2 2007/10/25 13:02:35 ingo Exp $ HISTORY: 21-06-2007 Diepholz Creation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function data_out = set_xy_axis(data, x, y) 0002 % SET_XY_AXIS set the x-axis and y-axis values. 0003 % 0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0005 % 0006 % DESCRIPTION: SET_XY_AXIS set the x-axis and y-axis values. 0007 % 0008 % CALL: data = set_xy_axis (data, x, y); 0009 % ao.data = set_xy_axis (ao.data, x, y); 0010 % 0011 % VERSION: $Id: set_xy_axis.m,v 1.2 2007/10/25 13:02:35 ingo Exp $ 0012 % 0013 % HISTORY: 21-06-2007 Diepholz 0014 % Creation 0015 % 0016 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0017 0018 if nargin ~= 3 0019 error (['### please call this function with three parameter: ' ... 0020 'data = set_xy_axis (data, x, y);']); 0021 end 0022 0023 if size(x,2) > size(x,1) 0024 x = x.'; 0025 end 0026 if size(y,2) > size(y,1) 0027 y = y.'; 0028 end 0029 0030 data_out = data; 0031 data_out.f = x; 0032 data_out.xx = y; 0033 0034 if nargin == 0 0035 error('### please use: data = set_xy_axis (data, x, y);'); 0036 end 0037 0038 % END