String in MATLAB

Posted on Dec 20, 2012 in Computer Science • Tagged with string, programming, MATLAB

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. To display special characters (e.g. \n, \t and so on), you have to use sprintf to format it first. fprintf does the job of formatting and …


Continue reading

Compare R with Other Languages on Data Manipulation

Posted on May 13, 2012 in Computer Science • Tagged with Python, C++, programming, statistics, Java, string, data frame, R, OOP, MATLAB, CRAN

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Here I compare R with other languages such as C/C++, Java, MATLAB, Python and so on data manipulation. I list a few advantages and disadvantages of …


Continue reading

General Tips for MATLAB

Posted on Dec 08, 2012 in Computer Science • Tagged with tips, skills, programming, MATLAB

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Skills

  1. MATLAB support profiling running time of code, so that you what to work on to optimize your code.s

  2. It is expensive to allocate a new …


Continue reading

Parallel Computing in MATLAB

Posted on Dec 19, 2012 in Computer Science • Tagged with HPC, parallel, concurrency, programming, MATLAB

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. It is very easy to do parallel computing in MATLAB. Usually what you have to do is to change for to parfor for the loop that you …

Continue reading

MATLAB IDE

Posted on Dec 04, 2012 in Software • Tagged with IDE, software, MATLAB

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. Command help offers help on functions, classes, packages and so on, but it support command style only, i.e. it can only be used without parentheses.

  2. The …


Continue reading

Linear Algebra in MATLAB

Posted on Dec 04, 2012 in Computer Science • Tagged with algebra, programming, MATLAB

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. Unlike most other programming languages, to get elements of an array in MATLAB, you have to parentheses to specify index. See more information in this post. If …


Continue reading