Re: Cross Correlating Road Grade information
- From: "Rune Allnor" <allnor@xxxxxxxxxxxx>
- Date: 28 Apr 2006 02:48:36 -0700
Rune Allnor wrote:
martini wrote:
this still does not compile...
am using the standard matlab compiler in matlab 7.1
I got rid of a lot of errors by declaring all the variables before the
first IF statement
however for some reason the compiler does not recognize the "new double"
in the memory allocation.
I have tried it with the visual c/C++ compiler as well but get this
error:
error C2065: 'new' : undeclared identifier
once again, what compiler are you using..as it seems that it is less picky
than mine
I'm using LCC or Borland v 5.6 under matlab 7.1. I'm not sure
which one is active. This is a C++ program. You can do the
same with C, provided you declare all variables before the first
line of code and use MALLOC (or somethind similar) instead of NEW,
and FREE instead of DELETE.
The easy way to get this to compile, is to run
mex -setup
from the matlab prompt and select the LCC compiler as the
active one.
I forgot: Make sure the filename extension is .cpp, not .c,
so the compiler understands it is dealing with a C++ file.
Rune
BTW, another bug: At one or two places it should be
t0 = 1/sqrt(variance);
(new square root).
Rune
.
- References:
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: jim
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: Fred Marshall
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: Fred Marshall
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- From: martini
- Re: Cross Correlating Road Grade information
- From: Rune Allnor
- Re: Cross Correlating Road Grade information
- Prev by Date: Re: image processing algorithm
- Next by Date: Re: In the limit. (Was " Is there an actual definition for 'direction of arrival'?")
- Previous by thread: Re: Cross Correlating Road Grade information
- Next by thread: Re: Cross Correlating Road Grade information
- Index(es):
Relevant Pages
|