Our function is f(x): = x² Input Vector X = [ 0 1 2 3 4 5] Output Vector Y= [ 0 1 4 9 16 25] Prediction Vector Z= [ 10 9 8 7 6] The System Should predict the squared values of the Prediction Values. Thus, System have to give an a
1 view (last 30 days)
Show older comments
1. Define Two Vectors(arrays), Input Vector and Output Vector. Input vector should contain the X values, while the Output vector should contain the squared values of the Input Values Y. 2. Train the system using the neural network tool in Matlab. 3. Define the Prediction Vector which should contain the data that you want to predict it using the system. 4. Simulate the system and check the results.
0 Comments
Answers (1)
Greg Heath
on 25 Apr 2017
Edited: Greg Heath
on 25 Apr 2017
Looks like homework. I did this problem when I first learned how to use the MATLAB NN Toolbox. However the input was [0:10].
help fitnet
doc fitnet
Thank you for formally accepting my answer
Greg
P.S. Try input = 0:10
0 Comments
See Also
Categories
Find more on Manage Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!