Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
how to ask the User to inform elements to compose a matrix
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Azzi Abdelmalek
el 2 de Ag. de 2015
Editada: Azzi Abdelmalek
el 2 de Ag. de 2015
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 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!