Go to Post So every 3 years robots have to lift robots? There's yet another pattern to consider. :p - ruacubfan2 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-04-2010, 22:31
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,521
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
MATLAB Textbook

Hi all,

Has anyone ever used either of these MATLAB textbooks? Have you used another one, or is there a good website for MATLAB tutorials?

MATLAB A Practical Introduction

An Engineers Guide to MATLAB

Next year I'm taking a couple of classes that use MATLAB, and there is no introductory MATLAB course. I've done a couple of projects in MATLAB, but they were pretty simple and it was all self taught, so I'm sure I was just scratching the surface.

Thanks!
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery

Last edited by Ian Curtis : 12-04-2010 at 01:53. Reason: Fixed broken link
  #2   Spotlight this post!  
Unread 12-04-2010, 09:44
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: MATLAB Textbook

Depending on your level of experience, "Physical Modeling in MATLAB" may be useful. It was written by Allen Downey, one of my professors at Olin College, as the textbook for our introductory math/physics course, which involves many projects in modeling physical systems in MATLAB. The course is taken by all students, so no programming experience is assumed.

http://www.greenteapress.com/matlab/

The textbook is free as a PDF, and you can buy a paper copy very inexpensively. Maybe it will help!
  #3   Spotlight this post!  
Unread 12-04-2010, 10:40
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: MATLAB Textbook

I've actually never read any books on Matlab other than the documentation that the Mathworks provides. Other than that, I've learned everything through examples and looking at what other people have done.

If you have a solid understanding of C, that will go a long way.

Matlab (and most of the other products from The Mathworks) has been my main tool for getting my job done at work for the past 10 years. If you need any help in a specific area in the future, I'd be happy to try my best to help you out.
__________________
-
An ounce of perception is worth a pound of obscure.
  #4   Spotlight this post!  
Unread 12-04-2010, 13:12
Ian Curtis Ian Curtis is offline
Best Available Data
FRC #1778 (Chill Out!)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Puget Sound
Posts: 2,521
Ian Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond reputeIan Curtis has a reputation beyond repute
Re: MATLAB Textbook

Greg,

"Olin textbook" and "free" are words that I like to hear in the same sentence! It certainly looks like a great place to start.

Chris,

Thanks for the offer! My programming experience is also largely self taught, so we'll see how I get by.
__________________
CHILL OUT! | Aero Stability & Control Engineer
Adam Savage's Obsessions (TED Talk) (Part 2)
It is much easier to call someone else a genius than admit to yourself that you are lazy. - Dave Gingery
  #5   Spotlight this post!  
Unread 12-04-2010, 13:31
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: MATLAB Textbook

Quote:
Originally Posted by iCurtis View Post
Greg,

"Olin textbook" and "free" are words that I like to hear in the same sentence! It certainly looks like a great place to start.

Chris,

Thanks for the offer! My programming experience is also largely self taught, so we'll see how I get by.
Allen Downey is straight up redonkulous with respect to copy-left/open source. He can honestly claim that he "learned Python by reading the book he wrote". He wrote a java book and open sourced it. Someone downloaded it, rewrote it for Python and sent it back to him. He read it, and learned Python in doing so. Emulating this is high on my list of "Accomplishments that qualify as winning at life", right next to "get interviewed by Terry Gross".


MATLAB is one of my four favorite programming languages, I used it a lot at DEKA. However, I still get snagged on some of its vector/matrix syntax. So, my advice to a MATLAB newbie is to study that part a little harder than the rest, and to not get too frustrated. If it doesn't work, add more periods before operators.
  #6   Spotlight this post!  
Unread 12-04-2010, 14:03
Dmentor's Avatar
Dmentor Dmentor is offline
Registered User
AKA: Daniel Bray
FRC #1895 (Lambda Corps)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Manassas, VA
Posts: 85
Dmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant future
Re: MATLAB Textbook

Quote:
Originally Posted by Chris Hibner View Post
I've actually never read any books on Matlab other than the documentation that the Mathworks provides. Other than that, I've learned everything through examples and looking at what other people have done.

If you have a solid understanding of C, that will go a long way.
When I first got started using MATLAB nearly 20 years ago, I read through the user's manual and skimmed the reference guide. These days they are all accessible online through the MathWorks website. That's pretty much all you need with judicious use of "help" and "doc". The basic programming constructs are similar to many languages although you need to be cognizant of the various operators and their linear algebra context. As Chris mentioned knowing C well can be helpful but to me the minor syntax differences with MATLAB are also very annoying. If you plan on using MATLAB for any length of time, I would really recommend beefing up your linear algebra particularly if you haven't used it a lot. Generally speaking if you want decent computational performance, you will learn to avoid (or limit) loops. You will then most probably decend into nested layers of reshape(repmat(permute())). Nice and compact but gives my software engineering peers headaches. If you really have to use loops then you can use MEX which is really nice.
__________________
Dan was here.


2014 VA Semi-Finalist (2363, 1533), Johnson & Johnson Gracious Professionalism Award
2013 Johnson & Johnson Gracious Professionalism Award, Woodie Flowers Finalist - James Gillespie
2012 Chesapeake Finalist (358, 714), Johnson & Johnson Gracious Professionalism Award
2011 VA Semi-Finalist (122, 1111), Johnson & Johnson Gracious Professionalism Award
2010 DC Semi-Finalist (2912, 449), Dean's List Finalist - Chris Dorick, Xerox Creativity Award
2009 VA Semi-Finalist (612, 1908)
2009 DC Semi-Finalist (1712, 176), Imagery Award
2007 CMP Newton Semi-Finalist (68, 111)
2007 VA Rookie All-Star Award, Regional Semi-Finalist (343, 612), Highest Rookie Seed Award (#2), Website Award

Last edited by Dmentor : 13-04-2010 at 12:52. Reason: typographical editting
  #7   Spotlight this post!  
Unread 12-04-2010, 19:04
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: MATLAB Textbook

Quote:
Originally Posted by Dmentor View Post
... knowing C well can be helpful but to me the minor syntax differences with MATLAB are also very annoying.
This is very true. My originally typed posted started listing some of the differences, but I decided to omit that part.

I remember having those frustrations when I first really started using Matlab. I relived that when I first started using LabVIEW: it was close enough to Simulink that I would try things that I would do in Simulink but it didn't work that way in LabVIEW, and that caused some frustration. I guess when things are really close to each other you tend to skip the documentation and just try to do it how it would make sense given the pattern up to that point. That's where the nice online documentation comes in handy.

Anyway, certain things in Matlab are very C-like, such as low-level file reading and writing, which are almost identical to how you do it in C. In fact, you'll find a lot of things where the people at the Mathworks just kept it as C-like as possible.


Other things that are different but can be annoying if you really know C:

- All Matlab arrays use matrix notation. That means the first index is 1 (NOT 0!!!!!)
- Operations can be performed on arrays/matricies and they follow the rules of matrix algebra, so be careful. You can always force element-wise operation by preceding your operator with a period. For example: a = b .* c;
- operating on subsets of arrays/matricies can be tricky (Be prepared to pull your hair out with some "arrays aren't the same size" errors). Get to know the array range operator (Ex: Array(1:10) means to use elements 1 through 10 of the array.) One cool thing is Array(5:end) automatically goes to the end (no need to know how many elements there are).
- if/elseif/else uses a slightly unique syntax. Very close to C, but not quite.
- There are no {} for code blocks. All loops and if constructs end with the "end" statement
- for loop syntax is for i = startvalue:stepsize:endvalue which is a really nice syntax actually. Stepsize is optional.

There are also some really cool things, like you can have multiple output arguments for a function. No need to pass pointers if you need multiple outputs. Also, all of the built in matrix operations and graphical functions are lifesavers. They are what turn Matlab from a nice novel programming language into the wonderful tool that it is. Not to mention that the debugger is quite good.

Anyway, enjoy learning it. It really is my go-to PC programming language unless I need to do some insanely fast computations.
__________________
-
An ounce of perception is worth a pound of obscure.
  #8   Spotlight this post!  
Unread 13-04-2010, 13:37
Dmentor's Avatar
Dmentor Dmentor is offline
Registered User
AKA: Daniel Bray
FRC #1895 (Lambda Corps)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Manassas, VA
Posts: 85
Dmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant futureDmentor has a brilliant future
Re: MATLAB Textbook

Quote:
Originally Posted by Chris Hibner View Post
It really is my go-to PC programming language unless I need to do some insanely fast computations.
Excellent post Chris.

MATLAB's superb interactive data manipulation and visualization capabilities make it a natural tool for algorithmic development, modeling and simulation work. MATLAB has constantly evolved and expanded throughout the years and yet most of the scripts I wrote in the early 1990's still run. If you stay in the field of engineering then most likely learning MATLAB well now will provide productivity gains throughout your career. It is sort of like learning to touch type; I've enjoyed the benefits from that for most of my life.

I work a lot with adaptive signal processing of phased sonar arrays which can be very computationally demanding. When we transition a MATLAB algorithm or model that I've written into optimized production code, we will typically write a MEX access function wrapper that calls the production code so that I have access to a high-performance version in MATLAB. This also enables direct comparisons versus the MATLAB model.
__________________
Dan was here.


2014 VA Semi-Finalist (2363, 1533), Johnson & Johnson Gracious Professionalism Award
2013 Johnson & Johnson Gracious Professionalism Award, Woodie Flowers Finalist - James Gillespie
2012 Chesapeake Finalist (358, 714), Johnson & Johnson Gracious Professionalism Award
2011 VA Semi-Finalist (122, 1111), Johnson & Johnson Gracious Professionalism Award
2010 DC Semi-Finalist (2912, 449), Dean's List Finalist - Chris Dorick, Xerox Creativity Award
2009 VA Semi-Finalist (612, 1908)
2009 DC Semi-Finalist (1712, 176), Imagery Award
2007 CMP Newton Semi-Finalist (68, 111)
2007 VA Rookie All-Star Award, Regional Semi-Finalist (343, 612), Highest Rookie Seed Award (#2), Website Award
  #9   Spotlight this post!  
Unread 13-04-2010, 17:53
Nikhil Bajaj Nikhil Bajaj is offline
MATLAB Fan
FRC #0461 (Westside Boiler Invasion)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2002
Location: West Lafayette, Indiana
Posts: 101
Nikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond reputeNikhil Bajaj has a reputation beyond repute
Send a message via AIM to Nikhil Bajaj
Re: MATLAB Textbook

Professor Downey's book looks really good. I learned most of my MATLAB by using the following book, which was prescribed to us in Purdue's Freshman Engineering at the time:

http://www.amazon.com/MATLAB-Introdu...mm_pap_title_2

However, I would suggest Professor Downey's book over it. If you are looking for lots of examples and exercises, Cleve Moler (one of the authors of LINPACK and EISPACK, and perhaps more importantly today the inventor of MATLAB) has two books for that:

http://www.mathworks.com/moler/

Hope that helps.
  #10   Spotlight this post!  
Unread 13-04-2010, 18:41
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: MATLAB Textbook

The first MATLAB book I used at Georgia Tech was this. Its a bit expensive compared to some other books out there. Its an okay book but I cant rate it to much as I didnt really use the book to much as I just learned on my own.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MATLAB? bob.colwell@com General Forum 0 26-01-2008 16:48
Excel vs. Matlab Gary Dillard Programming 16 24-02-2005 15:44
Modelling in Matlab randys_2002 Motors 3 21-01-2005 11:47
Good Textbook Source for Robot Design Kai Zhao Technical Discussion 4 15-01-2004 11:13


All times are GMT -5. The time now is 20:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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