Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
could anyone tell me how to fix the sum of (n,m) array to a fixed value .
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
could anyone tell me how to fix the sum of (n,m) array to a fixed value .
Respuestas (1)
bon sai
el 25 de En. de 2018
if [n,m] = size(A), then you can sum by column and then sum by row, or vice visa.
sum(sum(A,1),2)
you will get the same value.
4 comentarios
Walter Roberson
el 25 de En. de 2018
"in randfixedsum, the sum(n+m) of (nxm) array should be equal to s"
I do not understand what you are trying to say there? What I think it says is something that is not correct.
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!