Like Tree3Likes

Matlab vs. R

This is a discussion on Matlab vs. R within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I'm a student and I have to either take Matlab or R. Does any one know anything about either of ...

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    9

    Matlab vs. R

    I'm a student and I have to either take Matlab or R.

    Does any one know anything about either of these as far as usability? Which is the easiest language to use? Which language has more resources available/more common language? What are the differences between the two?

    I really like C; does either one operate similar to C?

    Any help is appreciated!
    Thanks so much!

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    I have studied a lot of Matlab and some R. I recommend taking Matlab, because it is a really useful for for any kinds of computations. R is more oriented towards statistics.

    Neither is similar to C.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Matlab sems to have more of a place in the engineering sector, Ive never even heard of R. Seems its still under development and as such may not ever catch on, while Matlab has been around and is an industry standard. If you learn C/C++ Matlab and Labview, you should always be able to find work.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    9
    Thank you!

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by abachler View Post
    Ive never even heard of R. Seems its still under development and as such may not ever catch on,
    Oh, it has caught on! It is a mature language used in statistics. I don't think it is used that much outside statistics, though.
    JackFlack likes this.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Yeah thats what I gathered from the google search. Personally Im not that fond of tools that try to reinvent the wheel for a very specific field. Im a multidiciplinary engineer, so I tend to acquire skills that have a use outside my primary field. I program because I need to be able to program the uC, uP for specialized equipment, not becuase I just want to program.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  7. #7
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    The problem with Matlab is that it is extremely expensive, except for students and universitites. Is there anyone here who has worked at a company with a Matlab licence? There are free Matlab 'equivalents', but they aren't fully compatible.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  8. #8
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Matlab... I hate R.

    >> that try to reinvent the wheel for a very specific field.
    You talking about R? Course you are. I wrote a big rant about why matlab wasn't reinventing the wheel until I realised what you meant (I reverse-read the posts).

  9. #9
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by Sang-drax View Post
    Oh, it has caught on! It is a mature language used in statistics. I don't think it is used that much outside statistics, though.
    Sounds more like a tool than a language.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  10. #10
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Neither is a language really. They're scrips...
    JackFlack likes this.

  11. #11
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Scripts are written in languages.

    R is basically the open-source implementation of S.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  12. #12
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    they are most definitely languages. scripting languages.

    anyways, Matlab all the way.
    My Website

    "Circular logic is good because it is."

  13. #13
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Yeah... blame Freud.
    JackFlack likes this.

  14. #14
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Matlab if you want floating point approximations. Maple if you want actual answers to your problems.

  15. #15
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Perspective View Post
    Matlab if you want floating point approximations. Maple if you want actual answers to your problems.
    Maple is a subset of Matlab. The symbolic toolbox in Matlab is basically Maple without the gui. In Matlab:
    Code:
    >> syms a b c
    >> A = [a+b c; 1+a b]
     
    A =
     
    [ a+b,   c]
    [ 1+a,   b]
     
     
    >> inv(A)
     
    ans =
     
    [      b/(b*a+b^2-c-c*a),     -c/(b*a+b^2-c-c*a)]
    [ -(1+a)/(b*a+b^2-c-c*a),  (a+b)/(b*a+b^2-c-c*a)]
     
     
    >>
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert Matlab Algebraic Sol to C compatible
    By Takeshi in forum C Programming
    Replies: 3
    Last Post: 01-08-2009, 06:35 PM
  2. MATLAB error
    By chico1st in forum Tech Board
    Replies: 1
    Last Post: 06-17-2008, 04:39 PM
  3. MATLAB importing C libraries
    By chico1st in forum C Programming
    Replies: 1
    Last Post: 05-29-2008, 03:01 PM
  4. C/C++ and Matlab?
    By darkwalk in forum C++ Programming
    Replies: 2
    Last Post: 10-21-2006, 04:00 AM
  5. HELP in MATLAB to C conversion
    By itachi in forum Tech Board
    Replies: 0
    Last Post: 01-08-2006, 02:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21