Click here to Skip to main content
15,905,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: errors! Pin
Rage23-May-03 1:47
professionalRage23-May-03 1:47 
GeneralRe: errors! Pin
flora_k23-May-03 2:59
flora_k23-May-03 2:59 
GeneralRe: errors! [modified] Pin
Rage23-May-03 3:09
professionalRage23-May-03 3:09 
GeneralRe: errors! Pin
Rage23-May-03 1:27
professionalRage23-May-03 1:27 
GeneralRecordSets && DataSets Pin
NHM23-May-03 0:14
NHM23-May-03 0:14 
GeneralRe: RecordSets && DataSets Pin
Alexandru Savescu23-May-03 6:05
Alexandru Savescu23-May-03 6:05 
Generalhelp! Pin
flora_k22-May-03 23:56
flora_k22-May-03 23:56 
GeneralRe: help! Pin
Rage23-May-03 1:42
professionalRage23-May-03 1:42 
Let me tell you that your matlab code is not really optimized...

For the following code, you need to put the size of the Trl table in length_y (which has to be declatred as an int).

int Dura = 1000/4096;
int *Trl;
int tmp;
int histogram_ram[4096];
int location;
int perc;
int time;

Trl=(int *)malloc(length_y*sizeof(int));
realTrl=(int *)malloc(length_y*sizeof(int));

for (location=1;location<length_y;location++)
{
   if ((y[location]-sl<0)&&(y[location+1]-sl>0))||((y[location]-sl>0)&&(y[location+1]-sl<0))
   {
      perc = (sl[location] - y[location])/(y[location +1] - y[location]) ;
      time = t[location] + (t[location+1]- t[location])*perc;
      Trl[location]=time;
   }
   else if ((y[location]-sl)==0)
   {
       Trl[location]=t[location];
   }
}

for(location=1;location<length_y-1;location++)
{
    Trl[location]=Trl[location+1]-Trl[location];
}

for (location=0;location<4096;location++)
{
    histogram_ram[location]=0;
}

for (location=1;location<length_y;lcoation++)
{
  tmp=(int)(Trl[location]/Dura+1);
  hitogram_ram[tmp]++;
}


This has not been tested.

~RaGE();
Questionwhat have I deleted? :=&lt; Pin
ilavl22-May-03 23:33
ilavl22-May-03 23:33 
AnswerRe: what have I deleted? :=&lt; Pin
Rickard Andersson2023-May-03 0:04
Rickard Andersson2023-May-03 0:04 
GeneralDisabled mini-bar in Developer Studio Pin
JensB22-May-03 23:31
JensB22-May-03 23:31 
QuestionCan Anyone Help me on OLE Drag&amp;Drop In MFC Pin
ccdai22-May-03 23:15
ccdai22-May-03 23:15 
GeneralSomething really strange !! Pin
Cedric Moonen22-May-03 21:44
Cedric Moonen22-May-03 21:44 
GeneralRe: Something really strange !! Pin
Rage22-May-03 23:07
professionalRage22-May-03 23:07 
GeneralRe: Something really strange !! Pin
Cedric Moonen22-May-03 23:19
Cedric Moonen22-May-03 23:19 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 0:52
Neville Franks23-May-03 0:52 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 1:41
Cedric Moonen23-May-03 1:41 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 1:58
Neville Franks23-May-03 1:58 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:12
Cedric Moonen23-May-03 2:12 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 2:21
Neville Franks23-May-03 2:21 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:41
Cedric Moonen23-May-03 2:41 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 2:47
Neville Franks23-May-03 2:47 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 2:59
Cedric Moonen23-May-03 2:59 
GeneralRe: Something really strange !! Pin
Neville Franks23-May-03 3:06
Neville Franks23-May-03 3:06 
GeneralRe: Something really strange !! Pin
Cedric Moonen23-May-03 3:10
Cedric Moonen23-May-03 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.