Using SPM5 with MatLab - porting

I am trying to use SPM5, but I have the latest version of MatLab, which does not work with SPM5. The last version of MatLab SPM5 works with is 7.3. Is there a way to downgrade MatLab, or a quick way to port SPM5 over to the current version of MatLab?
I cannot use SPM8 because it does not have the Lateralization Index (LI) tool that I need.

First, have you tried using SPM5 with a more recent version of Matlab? The FIL website simply says that they cannot predict how SPM5 will run on versions after 7.1, not that they are incompatible. I have personally used SPM5 with R2008b (7.7) for years without a problem.
Second, versions after R2008b/7.7 deprecated the call finite() in favor of isfinite(). This caused SPM5 to stop working. I was able to use SPM5 with R2010b (7.11) by replacing all calls to finite() with isfinite(). I don't know if this same strategy would work for more recent versions of Matlab, but it might be worth a shot.
Third, I do know that different versions of Matlab can be installed at the same time. So, if you have a maintenance agreement that allows you to obtain older versions of the software you should be able to install them concurrently without a problem.

If you have a licence for MATLAB that is in maintenance, you have a licence for all previous versions of MATLAB. You should be able to download any recent version by logging on to your MathWorks account. If you need an older version than is available via the website, or have difficulty accessing the version you want, contact MathWorks support directly.

Related

Can I still release a product with iText 2.1.5?

I can not find any link related with 2.1.5 from SourceForge. I wonder whether I can still use this version as a third party component in my product.
Any comment would be appreciated very much!
Sure you can. Search the web and you will find that version easily (e.g. here or here) It is a different question however whether you should still use that version. It is quite old and lots of bugs have been fixed and new functionality has been added. So do the following:
check the license restrictions (LGPL vs. AGPL)
if you don't have a problem with a GPL based license then use the latest 5.X version
if you can't use APGL buy a commercial license or use at least version 2.1.7
if you go the 2.1.7 route do some testing - in many cases it will do its job still fine. If not you'll probably have to fix it by yourself
Update: I would now use openPDF which is a maintained fork based on 2.1.7.

Installing a Matlab App in MATLAB R2012a

First off I'm not a regular Matlab user, so this might appear as a rather simple question, but how do you install Apps in Matlab R2012a? Is it even possible? I found a link for how to do it in R2012b here, but I can't find any guidelines on how to do it in R2012a.
I have a custom app that was sent to me by a colleague at another research institution, and I think they must have a more recent version of Matlab that us. His instructions were to go to the Apps tab in the tool bar and select Install Apps, but in R2012a, I can only see File, Edit, Debug, Parrallel, Desktop, Window and Help. I've also had a look in the Product Help guide in Matlab, but I couldn't find a relevant entry.
Any help would be greatly appreciated.
I believe MATLAB apps were introduced in R2012b, and that it's not possible to install or use them in earlier releases. You would need to contact your colleague, and ask them to supply an unpackaged version of the application (i.e. just the code).

Setup version control for Dreamweaver CS3?

I have NEVER used ANY version control system before. I am currently using the check-in-check-out feature of Dreamweaver but I would like to implement some sort of version control system where I can roll back to previous versions. Also it would be great but not required if I could go back like 3 versions, fix a bug, and have that bug fixed for all the later versions. I have no experience with version control, mainly because I never knew about it until I started reading the pragmatic programmer. So I would probably need step by step directions so if there is a tutorial or something I can be pointed to that would be great too.
Thanks!
Turtoise SVN would be a great first step into proper version control system.
Bazaar have impressed me lately, it's a fairly new scm and not that many 3rd party tools just yet. But if you want the latest and the greatest try it out!
Step by step guide(!) ;
Download
Bazaar in five
minutes
If you're on Windows, and want a smooth but powerful Distributed Version Control System, I recommend Mercurial through TortoiseHg. As a newcomer to version control, I can attest to its robust and nice, detailed interface, where you can smoothly progress from GUI-clicking to command line operations when needed.

Postgresql compiled from source versus ubuntu package

What are the advantages/disadvantages of using postgresql compiled from source compared to the ubuntu postgresql package? Which of the two are recommended to be used on a live production environment?
Thanks in advance.
I'd recommend distribution provided package over self-compiled one. You'll get automatic security updates from your distribution, sane file locations and ability to verify or restore files using your package manager. You'll be able to rollback failed update fast using old package, etc.
If you'll compile yourself you'll have to very often check if there is new version available with security updates, you'll forget what options did you use for compilation and if you mismatch them then an update can make your data unreadable. You won't be available (on vacation) when new security update is published and your update will be late. Or you'll forget to update at all. You're lazy and you'll have to work more.
I know this is an old question, but there is one very real advantage to building from source. If you find a bug, submit it to the pg mailing lists, and get a patch you can apply it within a few hours, easily. I know this, because I've done it twice in the last two years in production.
The only advantage with compiling it yourself is that you could optimize the build yourself with different features and/or compiling modes. But on the other hand this means your build is much less tested then one distribution via the package system. So doing it yourself might end up not being so great. Plus updating/redoing it as Tometzky mentioned, end up being a lot more work. Unless it's very needed to build it yourself, then don't.
(this is not specific to postgresql, but everything in a production environment)

free MATLAB environment

I'm learning the MATLAB language and would like to have some kind of free environment to experiment with. The MATLAB environment provided by MathWorks is commercial. There appears to be a trial available, but I can't figure out how to get the trial license.
For the moment, all I need is a command-line and the "standard libraries".
Octave is mostly compatible with matlab: http://www.gnu.org/software/octave/
If you are just starting with MATLAB I would strongly suggest to go the Python path instead (unless there is some very specific reason why you must use MATLAB). The basics (like array / matrix operations) are very similar to MATLAB.
In my current area of work (neuroscience) there is a strong migration from MATLAB to Python. Many groups are making the switch because Python is free and generally more powerful.
The basic packages you will probably need to get started would be numpy (basic array numerics), scipy (more algorithms) and matplotlib (plotting). Since you want to work on the command line I suggest IPython as well.
As already mentioned in another answer there are also some Python distributions which include many packages, like PythonXY, the Enthought Python Distribution, or Anaconda.
There are many tutorials available on the web, search a little and pick one you like.
Look into these:
Scilab
Octave
Sage
Read this blog entry from Ryan Morlok for more info on open source Matlab alternatives.
I'm a big fan of R, but it's not a substitute for Matlab... it's an alternative. There's a big difference!
I was recently enamoured of Python XY. It's not exactly like Matlab but it has many of the same functions and copies the look and feel. I would personally use it if I didn't want to buy a Matlab license though - not if I wanted to practice with a Matlab stand-in.
www.pythonxy.com
Other users have given you the examples that I would have suggested - Octave and Scilab. Of the two, I would say that Scilab is more powerful BUT Octave tries really hard to be source compatible with standard MATLAB and Scilab does not.
So, if your aim is to experiment with a MATLAB like language and learn skills that you will eventually be able to transfer over to MATLAB then I suggest that you stick with Octave.
If you're interested in trying things out in MATLAB directly, there was a recent blog entry on The MathWorks website regarding free trial downloads of MATLAB and its various toolboxes. If you haven't tried contacting them already, the blog links to this page where you can request product trials or, if you already have a licensed product, you can sign in and downloads trials of toolboxes.