prediction of any output point according to given input after regressing using ANN in matlab

1 view (last 30 days)
Hello dear,
I saw some videos about how to use ANN for regression. fortunately i am also able to regression but the point is that after doing regression and after saving that "simple script" code, how do we predict any result?
i mean if i have given input of any random
x=[4 5 7 9 15];
and output as
Y=[18 22 28 35 43];
now after regression using ANN i can able to get the predicted Ypred value.
but what if i want to get the value of Y at X=6 or 60 or anything.....!!!!
Please can you light on this that which steps and codes i have to execute.?
Thanking you in Advance,
Ashish Kundaliya
  1 Comment
Ashish Kundaliya
Ashish Kundaliya on 7 Jun 2020
Hey, I got the answer.
i am adding answer here, if anyone wants it.
After doing regression in ANN tool of matlab using "nnstart" command. at the end they will ask you to save " Matlab function", so you can save your matlab function with appropriate name. so, later you can use this function to predict any in between values.
by Calling that function with those input(s).
Sorry for the inconvienience if i have wasted your time by asking this above question.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!