Indexing definite Summation notation
Mostrar comentarios más antiguos
I want to input the formula below into MATLAB to ultimately commpute 'W':

Can you please tell me if how can I correct my code or suggest a more concise one?
syms i
for i = 1:m
i = i + 1;
phi(i) = atan((d1+(i*d2/(m+1)))/(R/(3*m+3)));
W = symsum(sin(gama + ((pi/2) - (phi*i))), i, 1, m);
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!