Board index » delphi » translate the adapthisteq.m of matlab to delphi
li
Delphi Developer |
li
Delphi Developer |
translate the adapthisteq.m of matlab to delphi2005-05-05 12:13:37 PM delphi277 hello: Can anybody translate the adapthisteq.m of matlab to delphi? I want to write a program,So I must translate it. Thanks a lot in advance li |
Charles Hacker
Delphi Developer |
2005-05-05 02:10:46 PM
Re:translate the adapthisteq.m of matlab to delphi
li writes:
Quote
(Pascal)? If this is the case, then what is "adapthisteq.m", and where to find it? (I teach Matlab at this university, so I know it is not a common matlab script). Or are you asking for how to automate Matlab? If that is the case, you can take a look at my (or others) Matlab automation delphi code at: www.djpate.freeserve.co.uk/Matlab.htm -- Charles Hacker Lecturer in Electronics and Computing School of Engineering Griffith University - Gold Coast Australia |
Nils Haeck
Delphi Developer |
2005-05-05 08:55:23 PM
Re:translate the adapthisteq.m of matlab to delphi
Hello Li,
I've written many ports from matlab to Delphi, but I don't know by heart adapthisteq.m. Perhaps you can post the salient part of it here, and I can give you some pointers on how to translate. Please note that all variables in matlab are by default matrices, and that a simple a = 1 / b can already be quite complicated in Delphi (creating a matrix class, doing a matrix inversion etc). Nils www.simdesign.nl "li" <XXXX@XXXXX.COM>schreef in bericht Quotehello: |
Mark Vaughan
Delphi Developer |
2005-05-05 09:18:36 PM
Re:translate the adapthisteq.m of matlab to delphi
Charles Hacker <XXXX@XXXXX.COM>wrote in
QuoteI teach Matlab at this university www.mathworks.com/support/books/), but it is hard for the uninitiated (i.e., me! :^D) to make heads or tails of it -- Mark Vaughan ___________ Visit the Numerical Methods in Pascal web page at www-rab.larc.nasa.gov/nmp/fNMPhome.htm |
Lord Crc
Delphi Developer |
2005-05-05 09:59:53 PM
Re:translate the adapthisteq.m of matlab to delphi
On Thu, 05 May 2005 16:10:46 +1000, Charles Hacker
<XXXX@XXXXX.COM>writes: Quote(I teach Matlab at this university, so I know it is not a common matlab (then again, I have never used matlab so :) Here's some C code from (Graphic?) Gems IV: www.cse.ucsc.edu/~pang/160/f98/Gems/GemsIV/clahe.c Should be straight forward to convert. - Asbjørn |
Charles Hacker
Delphi Developer |
2005-05-06 06:55:05 AM
Re:translate the adapthisteq.m of matlab to delphi
Mark Vaughan writes:
Quote
read of all! I would suggest you look at the online Matlab tutorials, offered by many universities, including my universities Matlab tutorial site: maxwell.me.gu.edu.au/spl/matlab-page/index.html -- Charles Hacker Lecturer in Electronics and Computing School of Engineering Griffith University - Gold Coast Australia |
Charles Hacker
Delphi Developer |
2005-05-06 06:57:15 AM
Re:translate the adapthisteq.m of matlab to delphi
Lord Crc writes:
Quote
Processing Toolbox', and 'Data Acquision ToolBox), so was not able to find it. -- Charles Hacker Lecturer in Electronics and Computing School of Engineering Griffith University - Gold Coast Australia |
Charles Hacker
Delphi Developer |
2005-05-06 07:08:57 AM
Re:translate the adapthisteq.m of matlab to delphi
li writes:
Quote
breaking the licence aggrement if you give out the code). But in any case, (judging by the Matlab routines in the "Signal Processing" and "Data Acquisition" toolboxes) the co0de is generally very complex (thus difficult to translate to other langauges) and usually is just a shell for a DLL routine, (and because of copywrite the DLLs are purposely un-documented!). -- Charles Hacker Lecturer in Electronics and Computing School of Engineering Griffith University - Gold Coast Australia |
Ronaldo Souza
Delphi Developer |
2005-05-06 07:39:20 AM
Re:translate the adapthisteq.m of matlab to delphi
Li,
As Charles said, .m files use the libs that come with MatLab which implement *thousands* of algorithms, placing millions of lines of source code at the user's disposal. I once had to "translate" a 7 line .m file to Delphi and it required a couple of thousands of lines to handle matrix operations, graphics, statistics and of course the particular algorithm I was interested in (which took about 500 lines...:-)) You might want to look at the MatLab group at: newsreader.mathworks.com/WebX?14@@/comp.soft-sys.matlab Good luck, Ronaldo |
Lord Crc
Delphi Developer |
2005-05-06 05:10:38 PM
Re:translate the adapthisteq.m of matlab to delphi
On Fri, 06 May 2005 08:57:15 +1000, Charles Hacker
<XXXX@XXXXX.COM>writes: QuoteOkay, its an obscure routine in the 'Image Processing Toolbox'! - Asbjørn |
Nils Haeck
Delphi Developer |
2005-05-06 07:47:24 PM
Re:translate the adapthisteq.m of matlab to delphi
Yes, that is the policy of Mathworks, and these addons can be quite
expensive! (think of thousands of Euros). Nils "Lord Crc" <XXXX@XXXXX.COM>schreef in bericht QuoteOn Fri, 06 May 2005 08:57:15 +1000, Charles Hacker |
Lord Crc
Delphi Developer |
2005-05-07 04:48:45 AM
Re:translate the adapthisteq.m of matlab to delphi
On Fri, 6 May 2005 13:47:24 +0200, "Nils Haeck" <XXXX@XXXXX.COM>writes:
QuoteYes, that is the policy of Mathworks, and these addons can be quite - Asbjørn |