Using function with a for loop

I'm struggling to complete the function with a for loop.
Below is what I have got so far. Not sure what went wrong and how to fix it.
I also need a code to call the function at the end.

 Respuesta aceptada

VBBV
VBBV el 27 de Ag. de 2022
(factorial(i)).^2)
You have two extra parenthesis for this term

2 comentarios

VBBV
VBBV el 27 de Ag. de 2022
Editada: VBBV el 27 de Ag. de 2022
Additional parenthesis )) are not needed. And end is missing for function as well.
Laidog
Laidog el 27 de Ag. de 2022
where should I put the end that I'm missing

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 27 de Ag. de 2022

Comentada:

el 27 de Ag. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by