The use of fuzzy neural network toolbox in MATLAB

A few days ago, I played with the use of the neural network toolbox in MATLAB, and suddenly there was a sense of "squatting in the well." Nothing else is nothing, but the data organization structure of the neural network is somewhat "weird", and if it is not careful, it will cause the toolbox to report an error. The following is the correct opening posture of the neural network toolbox, for your reference:

First paste a method that uses the batch command to invoke the Neural Network Toolbox:

P = [0.1515 0.1501 0.1509 0.1504 0.1504 0.1500

0.1515 0.1501 0.1509 0.1504 0.1504 0.1500

0.1515 0.1501 0.1500 0.1504 0.1504 0.1500

0.1515 0.1500 0.1509 0.1504 0.1504 0.1500

0.1515 0.1500 0.1509 0.1504 0.1504 0.1500

0.1515 0.1500 0.1509 0.1504 0.1504 0.1500

0.9684 0.2792 0.877 0.7426 0.7228 0.2272

0.9838 0.2941 0.9181 0.7977 0.7702 0.2452

0.9922 0.3101 0.9475 0.8445 0.8227 0.2665

0.9953 0.3058 0.9625 0.8708 0.8637 0.2624

0.9982 0.3242 0.9797 0.9089 0.9001 0.3008

0.9995 0.3469 0.9917 0.9314 0.9282 0.3678

0.9998 0.3565 0.9948 0.9493 0.9525 0.4500];

T= [0.1521

0.6949

0.7064

0.7083

0.7560

0.7807

0.8182

0.8533

0.8677

0.8459

0.8910

0.9269

0.9496];

P=P'; T=T';

Ff=newff(P,T,13);

ff.trainParam.epochs = 15000;

Ff = train(ff, P, T);

Y1 = sim(ff,P);

Cf=newcf(P,T,13);

cf.trainParam.epochs = 15000;

Cf = train(cf, P, T);

Y2 = sim(cf,P);

Plot(P,T,'o-');

Hold on;

Plot(P,Y1,'^m-');

Plot(P,Y2,'*-k');

TItle('newff & newcf')

Legend('original data', 'newff result', 'newcf result', 0);

The above method should pay attention to P and T should be transposed first, that is, the neural network training sample is each column of the matrix.

The first thing to do is to install MATLAB. I haven't described this step much. Please ask the princes to understand. After opening, type: anfisedit at the command line, and then the following interface will appear:

The use of fuzzy neural network toolbox in MATLAB

First click on the "Load Data" button in the first red box to import the data, which can be imported from a file or imported from a workspace. What is to be explained here is the format of the imported data, which must meet the following requirements: the front part of the data is the system input, and the latter part is the system output. Assuming our system is 3 input 1 output, then the data should be: [x1, x2, x3, y].

First import the training data required by the system (the first red box selects the data type: Training). After importing the data, the toolbox will be in the appropriate location, as follows:

The use of fuzzy neural network toolbox in MATLAB

Click the "FIS ProperTIes" option under the "Edit" menu, the following interface appears:

The use of fuzzy neural network toolbox in MATLAB

Starting System

Starting System,Starting Air System,Engine Starting System,Stop And Start Engine System

Chongqing LDJM Engine Parts Center , https://www.ckcummins.com