MATLAB Central - Free and Best Site for Source Code MATLAB
  • 1
  • 2
  • 3
  • Saturday, December 18, 2010

    , , , | by Posted by Unknown

    0

    Update twitter status Using MATLAB

    Update your Twitter® status from MATLAB®, created by Navan Ruthramoorthy that’s you may update status on Twitter via MATLAB. To make it work in R2007b you need to do the following:

     

    1. Download the Apache commons codec binaries from http://commons.apache.org/codec/download_codec.cgi.
    2. After you extract the binaries add the jar file to the java path using
    javaaddpath('<pathtofile>/commons-codec-1.4.jar'). Replace <pathtofile> with the directory where you extracted the files.
    3. In twit.m replace the line:114 which currently is
    114: outputStream.write(java.lang.String(msgEncodedStrforPost).getBytes());

    with the following two lines.

    msgEncodedStrforPostString = java.lang.String(msgEncodedStrforPost);
    outputStream.write(msgEncodedStrforPostString.getBytes());

    After this it should work. Let me know if this helps.

    From R2008a the Apache commans libraries are available and the code works without any changes.

     

    , | by Posted by Unknown

    0

    MATLAB Central - Free and Best Site for Source Code MATLAB

    MATLAb Central is a great site from MathWork to looking free Matlab source code and learn expert techniques, discover features, and hear about the latest developments. Join the conversation by posting a question or comment, and read feedback from other community members.

    With File Exchange, you may upload and download Matlab source code for free - by product, category, tag, author, and comment.

    Now, find and download Matlab source code from Matlab Central.