Doug's MATLAB Video Tutorials
January 19th, 2012
Understanding the display method for a cell
A MATLAB user wanted to get rid of the quote marks from a string in a cell array. This was not needed because they only appeared there due to the display method for a cell.
10:56 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
2 Comments »
January 10th, 2012
How to do a matrix reshape by ‘blocks’
This week’s video covers a non-standard way of reshaping a matrix. Instead of using the reshape function, this kind of matrix manipulation must be done with for loops. This matrix reshape operation treats submatrices within the original matrix as a unit. I suspect there are many other ways of doing this, and would love to hear about them in the comments.
13:11 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
2 Comments »
December 20th, 2011
Plotting multiple lines on a figure in MATLAB
This MATLAB graphics tutorial shows you how you can plot multiple lines on the same plot.
10:18 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
1 Comment »
December 9th, 2011
MATLAB tip: Use one command per line
This is a common programming pattern that I see with new MATLAB users: They put more than one command per line in MATLAB file. This can make it harder to visually take in a file, and because profiler and error messages give information back based on the line number this practice will often hide the source command if they are nested or placed two on a line.
13:38 UTC |
Posted in Uncategorized |
Permalink |
4 Comments »
December 2nd, 2011
Welcome to Sean from Answers
I wanted to take this week to point out what a great resource MATLAB Answers is and to also welcome one of the most prolific contributors on that site to his new role as an applications engineer here at MathWorks. Welcome Sean.
The concept behind MATLAB Answers is that the User Community is generous enough to support each other as we all learn more about MATLAB. It creates a forum for people to get quick, correct answers to well-formatted questions in a searchable form. If you have not already asked and answered questions here, I recommend you try it. I frequently use it to solve my own programming problems. In fact one of the core functions of the MATLAB programming contest was developed by the community here. I did not actually need the help <ahem>, I just liked using the great resource to confirm the algorithm… Yeah, that is the story!
13:51 UTC |
Posted in Topic: Off Topic, Uncategorized |
Permalink |
1 Comment »
November 23rd, 2011
Passing data between GUIDE callbacks without globals in MATLAB
Very often MATLAB users want to share data between different callbacks that they have in their MATLAB GUIs. This video shows a technique that is applicable for when the data being shared is already stored in the state of the GUI. Examples of data that is stored in the state of the GUI includes the state (checked or unchecked) of a checkbox or the string that is held in an edit box. This programming pattern is also good for having a variety of UIcontrols update the GUI in the same way.
If you are looking to share data between callbacks that is not stored in the state of the GUI, then this very old video should help. It shows you how to use GETAPPDATA and SETAPPDATA to share data in a MATLAB GUI.
15:23 UTC |
Posted in Format: Video, Level: Advanced, Topic: GUI or GUIDE |
Permalink |
5 Comments »
November 11th, 2011
Expression evaluation in MATLAB
MATLAB is constantly evaluating expressions and expressions within expressions. A lot of MATLAB users do not think about this, or the implications. Simple examples of using a vector as the index into a for loop instead of one that is dynamically created (1:10 for example) is shown. Also, the use of a variable as an input to a function expecting a string is shown.
17:22 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
No Comments »
November 2nd, 2011
Contest is on! Vines
Hey Contest fans, the new MATLAB contest is on. I am expecting this to be a great contest, several of us worked specifically on coming up with a good test suite for you to solve. By “good test suite”, I mean one that will be difficult, but fun to solve. Since I am not clever enough to ever win one of these contests, I get to have the fun of anticipating what kinds of solvers will be used, and then design test cases that will frustrate those efforts! You are welcome! :)
Enjoy!
Doug and the contest designers!
19:32 UTC |
Posted in Format: Video, Topic: Puzzler |
Permalink |
No Comments »
October 19th, 2011
Tutorial: How to make a custom data tip in MATLAB
If you use the standard data tip in MATLAB, it will annotate the X and Y value of a data point. This video will show how to customize the information that is shown in that data tip.
14:39 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
3 Comments »
October 7th, 2011
Managing subplot layouts in MATLAB
Many people use subplot to layout axes, but do not know there is a second way of using it so that all the axes can be sized differently. Also, a method for having a common x-axis is shown.
15:58 UTC |
Posted in Format: Video, Level: Basic |
Permalink |
2 Comments »
|
 |
Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.
|
 |
|
Recent Comments