comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » transfer the specific data in array A to array B
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
transfer the specific data in array A to array B [message #88245] Wed, 02 April 2014 11:37 Go to previous message
lczhang123 is currently offline  lczhang123
Messages: 5
Registered: March 2014
Junior Member
I got a question when I was trying to save the interested data from array A to a NEW array B.

j=0
FOR i=0,n-2 do begin

IF A[i+1]-A[i] gt 80 THEN BEGIN
B[j]=A[i]
j=j+1

ENDIF

ENDFOR

it seems theres something wrong with B[j]=A[i] should I define B as an array first? Or anyone has a better idea? I know it is a stupid question....sorry about that
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Solving a non-linear equation
Next Topic: Anyone knows a better local extrema function?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:09:03 PDT 2025

Total time taken to generate the page: 0.00443 seconds