Implementing own code - HowTo

31 views
Skip to first unread message

JH

unread,
May 11, 2011, 8:11:41 AM5/11/11
to freemat-devel
Hello,

I am using FreeMat since a few months and I need some very special
features like reading special file and data formats.

All is only for my own work and it will not be interesting for
others.

I am wondering if there is a How-To how to provide own code to the
source code of FreeMat. I have installed the source code and I am able
to build the application. I had a look on the source to check how I
can add own code and found some hints that I have to run several
scripts like siggen.m.

It seems that the procedure to add new internal functions to FreeMat
is somewhat automated. But what steps I have to go?

Regards

JH

Timothy Cyders

unread,
May 11, 2011, 8:50:03 AM5/11/11
to freema...@googlegroups.com
If you're developing really specific functions for yourself, it's probably not a good idea to add this to FreeMat's source code. Most of us have quite a few of our own m-files that allow us to do different things we're interested in, but the things that get committed to FreeMat's code structure tend to be specific features users have requested that seem like they would be useful for other users.

Are you looking just to modify the source code yourself for your own purposes, or are you looking to add your specific m-files to the overall functionality of FreeMat?

TJ


--
You received this message because you are subscribed to the Google Groups "freemat-devel" group.
To post to this group, send email to freema...@googlegroups.com.
To unsubscribe from this group, send email to freemat-deve...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/freemat-devel?hl=en.


JH

unread,
May 11, 2011, 10:15:07 AM5/11/11
to freema...@googlegroups.com
Timothy,

I do not think about to provide my code to others.

The things I will have to do are only for me and maybe for a colleague of mine. It makes no sense to provide specific code to read some special binary data files coming from certain "devices". I have written for example a code to be able to read a binary data format coming from an old spectroradiometer which is discontuniued for years and without any support by the manufacturer.

All what can be done by m-files I will do with m-files. But sometimes C++ is more powerful. It may be an opportunity to talk to devices by RS232 or other interfaces or other exotic stuff.

I am not a professional programmer, I only write some code to evaluate my data. FreeMat provides a huge mathematical library, my program so far provides rudimentary maths and some specific routines. For me it would be a great benfit if I could base my coming actvities in my lab-work on FreeMat. But some tasks I think are hard to be realized with m-files.

JH

Samit Basu

unread,
May 18, 2011, 2:07:18 AM5/18/11
to freema...@googlegroups.com

Hello

I suggest you look at the import function.  It was meant for precisely this application. 

Samit

Reply all
Reply to author
Forward
0 new messages