Tricky Problems in MATLAB

Posted on Dec 20, 2012 in Computer Science • Tagged with trick, trap, 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. Sometimes you might find that you can use some built-in function in MATLAB at first, but later you cannot use it any. If so, you should probably …


Continue reading

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

Tips for the IML Procedure in SAS

Posted on Jul 19, 2012 in Computer Science • Tagged with SAS, matrix, programming, IML

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

  1. End an IML procedure with quit;. You should never use run; to end an IML procedure because it is used for calling user-defined functions in IML procedures …


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

Program Termination in SAS

Posted on Jan 05, 2015 in Computer Science • Tagged with programming, SAS, termination, exit, quit, stop, error

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

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

To print an error …


Continue reading

Cartesian Product in SAS

Posted on Oct 23, 2014 in Computer Science • Tagged with programming, SAS, Cartesian product

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

Suppose we have 2 variables x = ("a", "b", "c") and y = (1, 2, 3), and we want to create a dataset containing the Cartesian product of x …


Continue reading