Borrar filtros
Borrar filtros

convert equation to matlab code

2 visualizaciones (últimos 30 días)
hajer
hajer el 27 de Nov. de 2011
Hi,How i can convert equation to matlab code?? like this , root( summation from i=1 to N [N(i)]Square ) plz can any one help me :(

Respuestas (1)

Image Analyst
Image Analyst el 27 de Nov. de 2011
Did you try
result = sum(N .^ 2)
but I'm not sure if N is the last index to sum to, or if it's the name of the array you're summing. You can't have it both ways. In my code above I summed over all elements in the N array.

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by