Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r33g2000yqn.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Segmentation violation due to MEX code
Date: Mon, 6 Jul 2009 13:07:55 -0700 (PDT)
Organization: http://groups.google.com
Lines: 21
Message-ID: <5b6d0b68-60e9-41be-a22f-ea755e2db20d@r33g2000yqn.googlegroups.com>
References: <h2tkfd$l84$1@fred.mathworks.com>
NNTP-Posting-Host: 77.17.205.45
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1246910875 31283 127.0.0.1 (6 Jul 2009 20:07:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 6 Jul 2009 20:07:55 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r33g2000yqn.googlegroups.com; posting-host=77.17.205.45; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 
	3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:553205


On 6 Jul, 21:49, "Jose Antonio " <jurig...@gmail.com> wrote:
> Hi!
>
> I am trying to implement a very simple subroutine embeding a CMEX code in Matlab.


> I am pretty sure the problem has to do with memory allocation when calling the function.

Well, you need to check that all the details match up.
What are the data types of the variables you feed to
the algorithm?

In a different thread you talked about image processing.
Is any of the variables an image? If so, what data
type do you use to represent pixels?

As I said before, you need to know what you are doing
on a level of detail way beyond what you would be used to,
if matlab is your only programming experience thus far.

Rune