

In this example, we will use an inbuilt dataset provided by MATLAB, ‘carbig’. Let us now understand the use of the Regression Learner toolbox using an example. It can also be used to compare different options amongst linear regression, support vector machines, regression trees & visualize the results.It is used to train a model automatically.Regression Learner toolbox is used to perform regression.Next, let us learn how Regression Learner Toolbox works in MATLAB Regression Learner Toolbox We can use a custom equation using the dropdown on the top of the curve.Īs we can see in the output, we have obtained a curve, fitting the input variables ‘x’, ‘y’, and ‘z’, which is the same as expected by us. The equation for this curve can be seen in the Result section.

We can immediately see that a curve will be created by Curve Fitting Toolbox. Step 4: Now set the ‘X Data’, ‘Y Data’, ‘Z Data’ in this pop-up window to our inputs, ‘x’, ‘y’, ‘z’ respectively. Step 3: A pop-up window will open like below:

Once we execute the above code in ‘Command Window’, we will get the 3 variables created in our ‘WORKSPACE’.

