


iSonea developed mobile app and service software for wheeze detection and asthma management. Here is a customer that has already been successful using MATLAB Coder. So hopefully from this, you can see that the C code we generate is first of all generic, and it's readable. You'll see here's our main entry point function called Euclidean and again the C code. So if you take a look at this C code, you'll see that we've got this helper function called norm, and there's the C code, and I'll scroll a little further down. Now, when we run this through MATLAB coder, what we'll get is this C code. But it's just a fairly basic little MATLAB function. We've got a for loop, and we have an if statement.

You can see that we make a call out to another function called norm. Euclidean takes some input vector, x, and then compares this vector to a code book of vectors and returns the vector with the minimum distance. So here in MATLAB, you can see our original function, and the function is called Euclidean. To begin with, let's start with an example using a Euclidean distance measure, and I'll show how you can take a MATLAB function, and using MATLAB Coder, generate generic NCC code. Hello, my name is Daryl Ning, and today we'll be talking about how you can automatically convert your MATLAB to C code using MATLAB Coder.
