Effacer les filtres
Effacer les filtres

How can plote continous line to clear the matching between predictions and real outputs points in same figure by MATLAB

1 vue (au cours des 30 derniers jours)
Hi , i have NN for prediction points,
i need draw line in the results showing how much the prediction points matching the real points,
wrote the code, but provide me just points without continuous line!
please help me !
clear all;
%%%%%%%%%%%%%%%%%%% normlaized
p1=xlsread('diffrentnorm.xlsx',1,'A1:B7000') ;
t1=xlsread('diffrentnorm.xlsx',1,'C1:C7000') ;
sample=xlsread('diffrentnorm.xlsx',1,'A7010:B7020') ;
t2=xlsread('diffrentnorm.xlsx',1,'C7010:C7020') ;
%% training
net =newcf(p1',t1',10,{'tansig','purelin'},'trainlm');%Cascade-forward neural network,ok
net.divideParam.trainRatio = 0.70; % training set [%]
net.divideParam.valRatio = 0.15; % validation set [%]
net.divideParam.testRatio = 0.15; % test set [%]
% net=init(net);
net.trainParam.epochs=1000;
net.trainParam.max_fail =1000;
net.trainParam.min_grad=1e-09;
[net,tr,Y,E]=train(net,p1',t1');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
predictionvalue = net(sample');
performance = perform(net,t2', predictionvalue);hold all
%%%%%%%%%%%%%%%%%%%%%%%%%%55
figure
t = 0:1:10;
plot(t,t2','*','color','blue')
hold on
plot(t,predictionvalue','+','color','red')
hold off

Réponse acceptée

Furat Alobaidy
Furat Alobaidy le 17 Déc 2019
thanks a lot .

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by