In order to solve the one-to-many problem, the quality index is divided into four categories, with Y as the physical and chemical index of grape (wine) as X, and I use the regression method.
Matlab is made of regression function, specifically Baidu search. I also searched and put the source code in the data set. The result of the second half of the question is no, come on!