Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how to ask the User to inform elements to compose a matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
for example:
I ask him the first element, then the second and so on accumulating in the vector.
what I did was
Neuron = [ ] ;
for j=1:(b-1)
p = input ('enter the number of the neurons', j, 'layer');
neuron = [neuron p];
end
it happens that when I thus gives error the message is matlab
Too many input arguments.
please someone help me
thank you very much
댓글 수: 0
답변 (2개)
Azzi Abdelmalek
2015년 8월 2일
편집: Azzi Abdelmalek
2015년 8월 2일
I think it always gives error.
b=4
Neuron = zeros(1,b-1) ;
for jj=1:b-1
p = input ('enter the number of the neurons');
Neuron(jj) = p;
end
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!