clear num = [1 1 1 1 1 1 1]; den = [1 2 3 0 5 6 7]; for i = 1: numel(den) if den(i) == 0 a = 1 else … 続きを読む >>
Debugging session 3
- カテゴリ:
- Format: Video,
- Level: Basic
clear num = [1 1 1 1 1 1 1]; den = [1 2 3 0 5 6 7]; for i = 1: numel(den) if den(i) == 0 a = 1 else … 続きを読む >>
I got a question via e-mail that was asking how to set the data in a uitable. Setting the data in a uitable is as easy as: >> a = uitable >> set(a,’data’,… 続きを読む >>
A statement like this: a = sin(x) + cos(y) + inv(z); makes it impossible to know which part of the calculation is the bottleneck. This video shows how to determine what is slowing your code… 続きを読む >>
Nathan over at FlowingData.com had a post that explains what visualization to use in different situations. Ultimately he linked to this chart from Andrew Abela of The Extreme Presentation(tm)… 続きを読む >>
I have been reading the MATLAB questions in Stack Overflow for a few weeks, and here was a really good question that came through. With two vectors, x and y, bin the x values as if with a… 続きを読む >>