Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Excel vs. Matlab (http://www.chiefdelphi.com/forums/showthread.php?t=34917)

Gary Dillard 18-02-2005 15:32

Excel vs. Matlab
 
I know this barely counts as a programming topic, but which tool do you prefer and why? Having used both I prefer Excel hands down, although I don't have a whole lot of Matlab experience. I've also used MathCad, which is great for doing reports and documentation but for calculations it's like having one pencil tied behind your back.

I've heard strong opinions from both camps, so let the war of the words (or numbers) begin. I would have made this a poll but I didn't think the Matlab guys could figure out how to use something that has all the information on one page. :D

GregT 18-02-2005 15:37

Re: Excel vs. Matlab
 
It's really not fair to compare these two programs. They are designed for different tasks. Excel is a spreadsheet program, Matlab is not. I believe Matlab is short for matrix laboratory.

"MATLAB is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numerical computation. Using MATLAB, you can solve technical computing problems faster than with traditional programming languages, such as C, C++, and Fortran."

I do like excel though. That program can do more then most people give it credit for!

whakojacko 18-02-2005 15:44

Re: Excel vs. Matlab
 
matlab? i prefer mathematica :).

Karthik 18-02-2005 15:49

Re: Excel vs. Matlab
 
Wonderful topic Gary.

I'm a devout Excel user. Most people are unaware of the powers of this program. It really can do some wonderful things. The simple, easy to use interface makes learning it a breeze. I started using it when I worked for CIBC, where I realized what a great tool it is. From there I used for a variety of statistical purposes including lots Fantasy Sports spreadsheets.

What I like the most about Excel, is that it doesn't give you so much rope that you end up hanging yourself. I see that as a problem with Matlab.

Granted Matlab is a much more powerful tool, but if a really need that much power I use Maple. Maple is a beautiful piece of software, that covers all my symbolic computing needs. From solving DEs to telling you what 27,343rd prime number is, Maple does it all. (I may be a little biased, I had a 4 month internship in 2002 doing Maple research at the University of Western Ontario)

Emily Pease 18-02-2005 15:50

Re: Excel vs. Matlab
 
Once you really get to know Matlab, you'll become addicted to it, and you will start writing m-files for the simplest calculations, just in case you'll need to make that same calculation again. I haven't used Matlab in a few weeks, and I'm actually going through withdrawals. I have tiny pangs of nausea when I have to use a calculator or ::gasp:: pencil and paper.

But seriously, even if you're just comparing data analysis capabilities of both, it really depends on the application.

I do have a soft spot in my heart for the fancy ways you can organize data in Excel. If you haven't already, you should check out "Excel Hacks" by O'Reilly.

Gary Dillard 18-02-2005 16:04

Re: Excel vs. Matlab
 
Quote:

Originally Posted by GregT
It's really not fair to compare these two programs. They are designed for very different tasks.

Yeah, but......
In general, for ANY calculation task, Excel people will try to solve it in Excel, Matlab people will try to solve it in Matlab, regardless of whether the program was designed to do it or not. Using Goal Seek and Solver in Excel, I can do alot of iterative solutions that the general spreadsheet user doesn't do but the capability is there.

I've even seen people jump into Excel or Matlab to do a quick calculation, when the Windows Calculator accessory would to the trick just fine.

GregT 18-02-2005 16:20

Re: Excel vs. Matlab
 
Quote:

Originally Posted by Gary Dillard
Yeah, but......
In general, for ANY calculation task, Excel people will try to solve it in Excel, Matlab people will try to solve it in Matlab, regardless of whether the program was designed to do it or not. Using Goal Seek and Solver in Excel, I can do alot of iterative solutions that the general spreadsheet user doesn't do but the capability is there.

I've even seen people jump into Excel or Matlab to do a quick calculation, when the Windows Calculator accessory would to the trick just fine.

Yeah. I suppose Matlab is more closley related to Excel then I intially thought. When I sad "very different tasks" I was wrong.

Paul Copioli 18-02-2005 16:22

Re: Excel vs. Matlab
 
For me, Excel = virtual scratch pad for calculations.

I am a devout Excel user. The Visual Basic environment behind Excel (Formerly VBA) makes Excel awesome for a mechanical guy who wants to make a small custom program to run calcs, but doesn't want to write a full blown program.

I used Matlab in college in my controls classes and it was awesome for that, but I haven't used it for anything else since I have been in industry.

The other program I use is Mathcad. It is also very good. Its symbolic solver is out of this world. Robot kinematic derivations are easy to follow in Mathcad and to derive. I very often do a derivation in Mathcad and put the results in an Excel environment for rapid calculations of different scenarios.

-Paul

geeknerd99 18-02-2005 16:23

Re: Excel vs. Matlab
 
Hmm... I've used matlab to solve addition problems before.

And I just found a Matlab mug in my cupboard.

Emily Pease 18-02-2005 16:30

Re: Excel vs. Matlab
 
Quote:

Originally Posted by geeknerd99
Hmm... I've used matlab to solve addition problems before.

And I just found a Matlab mug in my cupboard.

Hah! Where do you get a Matlab mug? I want one!

Mr. Lim 18-02-2005 16:30

Re: Excel vs. Matlab
 
Two programs that are good at what they do.

I use Excel on a regular basis, and when it comes to quickly summing, averaging, and doing simple manipulation on smaller sets of data, I wouldn't use much else.

When engineering though, it's like comparing apples to oranges. The first jaw-dropping experience I had with Matlab was a 2nd year Signals and Systems lab at Kettering University (formerly GMI).

We modeled a few simple circuits: low-pass, high-pass, band-pass and notch filters. The aspiring EEs and CEs among us know that these simple circuits can be broken down into equally simple equations (the impulse response). At that time we'd just learned about calculating a system's response by convoluting the input function with the impulse response, and how exhausting of a process it was to do manually.

And then came MATLAB...

We sampled about 5 seconds of audio at 44.1kHz 16-bit, and got a nice big dataset into MATLAB. Then we played back the convoluted result... all within MATLAB. It was insane...

In short, we we able to model, test and tweak an audio filter without ever touching a single capacitor, inductor or resistor. We could adjust any one of our parameters, and instantly hear the results.

It was at that moment I understood the difference between an engineering math package, and Excel.

It was also at that moment how much money I could make with a hammer, a microphone, MATLAB, and a penchant for making things quieter =)...

-SlimBoJones...

Ian Mackenzie 18-02-2005 18:37

Re: Excel vs. Matlab
 
MATLAB all the way for me (and yes, it does stand for Matrix Laboratory). If you can get the hang of thinking in matrices (e.g. doing tricky matrix indexing, performing operations on a whole matrix at once), and you like working at a command line (which I do), you can do some pretty amazing things very quickly and efficiently.

MATLAB just seems to have a habit of having exactly the function I need - Karthik and I go back and forth about MATLAB and Excel all the time, and once we had a problem where we needed to generate a random permutation of the integers 1 through n. A quick look through the MATLAB help file, and I found randperm(n)...

The other nice thing about MATLAB is that you can actually do (gasp!) for-loops, if statements, functions, etc. (All right, I know there's an 'if' command in Excel, but it's not the same). And if you have large, dynamically-sized sets of data to work with, there's really no comparison.

And yeah, in Excel you can check multiple cases easily, but I prefer to get my calculations right the first time... :D

Joe Ross 23-02-2005 01:24

Re: Excel vs. Matlab
 
RIT just switched the mechanical engineering curriculum from teaching Excel with VBA to Matlab.

I'm proficient in both, and I choose excel for easy, short things (less then a few hours of work) and matlab for more complicated number crunching or programming.

Nikhil Bajaj 23-02-2005 03:47

Re: Excel vs. Matlab
 
Quote:

Originally Posted by Joe Ross
RIT just switched the mechanical engineering curriculum from teaching Excel with VBA to Matlab.

I'm proficient in both, and I choose excel for easy, short things (less then a few hours of work) and matlab for more complicated number crunching or programming.

At Purdue last semester we used both in ENGR 116, which is the Honors Engineering Computer Problem Solving Tools thing class (I really don't remember the actual name) but I found that they were both extremely useful. In practice, we used excel to do some pretty sophisticated modelling of arm torque, which could have just as easily been done in MATLAB. Our drive calculations (insert shameless plug here for you to go look at our drivetrain pic for this year) were done in Excel, mainly, to combine motors and stuff, but I'm currently working on a Matlab script that will be handy for gearbox construction.

I think they're both darn awesome.

Chris Hibner 23-02-2005 09:35

Re: Excel vs. Matlab
 
I use Matlab 95% of the time. The only time I use Excel is for Goal Seek.

Matlab is MUCH less user friendly than Excel. Excel is really easy and intuitive to use, but much less powerful, especially for big-time number crunching.

I think that people that like Excel much better just don't know Matlab well enough to use it efficiently. That is okay - Matlab takes a long time to learn. Why go through that learning process when you can use Excel and do it NOW. Since I am so fluent in Matlab, I can usually do anything in Matlab in about half the time it takes me to do it in Excel (and the results always look prettier).


All times are GMT -5. The time now is 12:52.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi