필터 지우기
필터 지우기

append file from loop

조회 수: 2 (최근 30일)
Tomasz Kaczmarski
Tomasz Kaczmarski 2020년 3월 26일
댓글: Tomasz Kaczmarski 2020년 3월 27일
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

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 3월 26일
The WriteMode property was introduced in R2020a. For R2019b you do something like this
dlmwrite('Tnew2.txt', Tnew, '-append');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by