Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Using synthetic data to test algorithms in MATLAB 2

Posted by Doug Hull,

This week we are making up some data and doing a couple of visualizations. We then modify the data to do a reality check on a simple algorithm. This allows us to gain confidence in our algorithm before we send it real data.

2 CommentsOldest to Newest

ENath replied on : 1 of 2
Hi Stuart, Thank you for the tutorials. Could you kindly offer me some tips on how to generate artificial data to test an algorithm written in matlab? I wish that the generated data will be monotone and non-linear also contain parameters. The aim is to obtain such parameters using the well-known nonlinear regression using a modified Neural Network training method. For example, I tried using ydata = theta1*(g(theta2*x1 + theta3*x2)) + theta1*(g(theta4*x1 + theta5*x2)) but onbtained a linear relationship instead. Besides, the given equation represents a neural network, and using it in a reverse form might render the problem too simple to solve. I generated 100 data points for x1,x2 and obtained same number of points for ydata. The parameters theta1,theta2,theta3 and theta4 are all assigned to random numbers between 0 and 1. g/eta=(1/1+exp(-eta))

Add A Comment

Your email address will not be published. Required fields are marked *

Preview: hide