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’. Set the ‘X Data’, ‘Y Data’, ‘Z Data’ in Curve fitting tool to our inputs, ‘x’, ‘y’, ‘z’ respectively.Create the 3 matrices using rand function. In this example, we will use 3 metrics ‘x’, ‘y’, ‘z’ and will fit a curve in them using the Curve fitting toolbox. Let us now understand the use of the Curve fitting toolbox using an example.
0 Comments
Leave a Reply. |