append file from loop
1 view (last 30 days)
Show older comments
Tomasz Kaczmarski
on 26 Mar 2020
Commented: Tomasz Kaczmarski
on 27 Mar 2020
hello
how i can append file from each loop output
folloing
gives me
Invalid parameter name: WriteMode.
mine code is below:
for lr = mu
for m = maxFail
for hl = hiddenLayerSize
net = fitnet(hl,trainFcn)
[net,tr] = train(net,x,t);
y = net(x)
[c] = confusion(t,y)
performance = perform(net,t,y)
e = gsubtract(t,y)
Tnew = array2table([lr,m,hl,performance,100*c])
% Tnew = [lr,m,hl,e,100*c,100*(1-c),performance];
writetable(Tnew,'Tnew2','WriteMode','Append','WriteVariableNames', false)
end
end
end
0 Comments
Accepted Answer
Ameer Hamza
on 26 Mar 2020
The WriteMode property was introduced in R2020a. For R2019b you do something like this
dlmwrite('Tnew2.txt', Tnew, '-append');
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!