need a help using loop
이전 댓글 표시
hello i have this code that i wanted to shorten by using loop but i can't seems to find how
net1 = perceptron;
net1 = train(net1, P, T1);
net2 = perceptron;
net2 = train(net2, P, T2);
net3 = perceptron;
net3 = train(net3, P, T3);
net4 = perceptron;
net4 = train(net4, P, T4);
net5 = perceptron;
net5 = train(net5, P, T5);
when i tried using simple
for X = 1 : 5;
netX = perceptron;
netX = train(netX, P, TX);
end
it will show that T is still an undefined function or variable thank you.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Define Shallow Neural Network Architectures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!