Site hosted by Angelfire.com: Build your free website today!

sortbyx

PURPOSE ^

function [x_new,y_new] = sortbyx(x,y,order_flag)

SYNOPSIS ^

function [x_new,y_new] = sortbyx(x,y,order_flag)

DESCRIPTION ^

function [x_new,y_new] = sortbyx(x,y,order_flag)

This function will sort the corresponding vectors x and y in
increasing order of x while preserving the correspondence with y
%Input variable(s)%%
%%%%%%%%%%%%%%%%%%%%
x          = input vector 1 for sorting
y          = input vector 2, sorted along with x
order_flag = 1 if sorting x from lowest to highest,=-1 if other way

%%%%%%%%%%%%%%%%%%%%%
%Output variable(s)%%
%%%%%%%%%%%%%%%%%%%%%
x_new      = sorted x vector
y_new      = sorted y vector (according to x)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004