Thursday, March 31, 2011

Deal with Matlab errors: Can't be saved as MAT file

Problem description:
When tring to save variable to .mat file, it failed and warning popups:
"Warning: Variable 'variable name' cannot be saved to a MAT-file whose version is older than 7.3.
To save this variable, use the -v7.3 switch. Skipping...".
But the actual version of the MATLAB is newer than 7.3.

Solution:
"save -v7.3 Test.mat Test". Try the format like this way.

(cc)HOWTO: install Git on Hostmonster

1) Git is an open source version control system and this is how I installed Git v1.7.4.2 on my hostmonster account.
$ mkdir git
$ cd git
$ wget http://kernel.org/pub/software/scm/git/git-1.7.4.2.tar.gz
$ gunzip git-1.7.4.2.tar.gz
$ tar -xf git-1.7.4.2.tar
$ cd git-1.7.4.2/
$ ./configure --prefix=$HOME/git
$ make && make install
(or try this:
$make SHELL="/bin/bash"
$make SHELL="/bin/bash" install )

2) You can remove the source, but I chose to move it into a source folder
$ cd ~/git
$ mv git-1.7.4.2/ src/

3) Now add this line to your .bashrc file:
export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH

4) to check your install and reload bash:
$ source ~/.bashrc
$ git --version

5) to get started move to your project directory and type: (note the "." on line 3)
$ git init
# Initialized empty Git repository in /home/YourAppName/.git/
$ git add .

from http://hostmonsterforum.com/showthread.php?4589-HOWTO-install-Git-on-Hostmonster