Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: help regarding 2D matrix using c mex file
Date: Thu, 20 Aug 2009 09:37:02 +0000 (UTC)
Organization: Indian Institute of Technology
Lines: 18
Message-ID: <h6j5ft$poj$1@fred.mathworks.com>
References: <h6b2k6$oh2$1@fred.mathworks.com> <h6b3nq$6ft$1@fred.mathworks.com> <h6dsve$37p$1@fred.mathworks.com> <h6et12$284$1@fred.mathworks.com> <h6fhbo$l34$1@fred.mathworks.com> <h6gav1$hjm$1@fred.mathworks.com> <h6j26v$n34$1@fred.mathworks.com> <h6j4cq$5ll$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250761022 26387 172.30.248.38 (20 Aug 2009 09:37:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 Aug 2009 09:37:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 223861
Xref: news.mathworks.com comp.soft-sys.matlab:564701


Hi Bruno,
Excellent code!
I got
********
>> mex c2d.c
>> c2d([1 2 3; 4 5 6]);
data(1,1) = 1.000000
data(1,2) = 2.000000
data(1,3) = 3.000000
data(2,1) = 4.000000
data(2,2) = 5.000000
data(2,3) = 6.000000
*******
Thank you very much. It serves my purpose.


with regards,
ramana