The MATLAB user has this: clear clc M(:,:,1) = [1,2;3,4]; M(:,:,2) = [21,22;23,24]; J = [1,2; 2,1]; They want this: ans = [1 22 23 4] They tried this: D = M(:,:,J) % This doesn’t… 더 읽어보기 >>
The MATLAB user has this: clear clc M(:,:,1) = [1,2;3,4]; M(:,:,2) = [21,22;23,24]; J = [1,2; 2,1]; They want this: ans = [1 22 23 4] They tried this: D = M(:,:,J) % This doesn’t… 더 읽어보기 >>
Talking through your code is an excellent way to find bugs. By discussing the code you have written line by line, you are forced to understand it better. This is a common practice at most software… 더 읽어보기 >>
In this short video, I explore the math behind this joke: An infinite number of mathematicians walk into a bar. The 1st orders a 1 beer. The 2nd orders 1/2 a beer. The 3rd orders … 더 읽어보기 >>
I love getting well formed question and challenges from fellow MATLAB users. This week I got one that works very well as a video. The problem was trying to index into a vector with a vector of… 더 읽어보기 >>
I think it is best to do these tutorials based on solving realistic coding challenges. In helping to write the code for the next MATLAB contest, I had a situation where I wanted two images to be… 더 읽어보기 >>
This blog is just one of many resource available to people that want to learn how to use MATLAB. I want to point you to several tutorials that are available for MATLAB.
You will find lots of… 더 읽어보기 >>
I get lots of e-mail from blog readers that say they learn a lot from the videos here. Well, this week we want to learn from you.
The Usability team at The MathWorks studies how people actually use… 더 읽어보기 >>
In the recent Puzzler about the spiral, most of the code that was produced went along the following: Create the spiral matrix Find the indices of the ‘1’s in the binary targets… 더 읽어보기 >>
I recently got an e-mail from a MATLAB user that had a large dataset in Excel. They wanted to import the data and “take the average of the graph”. It turns out that meant fitting a… 더 읽어보기 >>
This puzzler is very straightforward, so I hope to hear from some of the newer MATLAB users. I think the solution is very linear, most people would come up with the same solution. As a hint, be… 더 읽어보기 >>