MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Asked by Mariem Harmassi
on 5 Oct 2012

i used a backpropagation neural network and i get this output 3.5838e-006 .baut what i need is juts values that lies between 0 and one ,what does it mean cauz all the other output lies between 0 and 1 expect this one

Answer by Walter Roberson
on 5 Oct 2012

Accepted answer

3.5838e-006 **is** between 0 and 1. It is approximately 0.000003583799999999999890

Mariem Harmassi
on 5 Oct 2012

i need to sum up an array which contains this value but when i used the sum function matlab return this : ??? Error using ==> sum Dimension argument must be a positive integer scalar within indexing range.

Matt Kindig
on 5 Oct 2012

It looks like you are trying to pass this number 3.583e-006 as the (second) dimension argument. Look at the help documentation for sum. The first argument is where you pass in your matrix.

doc sum

Mariem Harmassi
on 6 Oct 2012

Thank u for answering i found the error it was not due to the output bounds.

## 0 Comments