How to sort a vector and then append data

From: joel GUERRERO (joegi.geo_at_yahoo.com)
Date: 07/30/04


Date: 29 Jul 2004 18:49:37 -0700

Hi,
I'm not very experienced using fortran 90, and probably this will
looks a stupid question for you.

I need to sort a vector and then append the missing data that is:

Suppose that we have the following vector: 3 1 2 5 15

I need to sort it, that is i need to get: 1 2 3 5 15

and then append the missing numbers in order to get the following
vector:
 
1 2 3 -4- 5 -6- -7- -8- -9- -10- -11- -12- -13- -14- 15

Hoper you can help me,

Joel



Relevant Pages

  • Re: How to sort a vector and then append data
    ... > looks a stupid question for you. ... > I need to sort a vector and then append the missing data that is: ...
    (comp.lang.fortran)
  • Re: How to sort a vector and then append data
    ... >I need to sort a vector and then append the missing data that is: ... Much more efficient than sorting. ... Catherine Rees Lay ...
    (comp.lang.fortran)
  • Append Query
    ... I have designed an append query to append all the records from 1 table to ... I missed 1 field in the append design. ... way I can now append this missing data to the existing records without ... duplicating data and records as I know this happens when you duplicate the ...
    (microsoft.public.access.queries)
  • Re: How to sort a file -
    ... Bob Goodwin wrote: ... information since the raw log data is in descending order of date/time and I am adding the latest data in the same order but at the bottom so the list it may show 16:00-15:30 followed by the latest block on the list 16:30-16:00. ... I need to either sort the data as a function of time or append the new data to the beginning of the "NG-LOG" file instead of the end. ...
    (Fedora)
  • Re: vectors rearrangement
    ... and I need to conforming two vectors. ... Use the sort() function to sort each vector in order. ... use regular indexing such as v1to extract out the ... Then append v1to get the remainder of the ...
    (comp.soft-sys.matlab)