sum() function gives error

Code for simple creation of array and calculating the sum using the sum() function.
I copied the code from the documentation and it just won't work for me.
Can anyone help me out!!
(I only have the trial version and I have tried the code in the online trial version as well as on the trial software)

Respuestas (2)

Bruno Luong
Bruno Luong el 18 de Jul. de 2020
Editada: Bruno Luong el 18 de Jul. de 2020

1 voto

You have created a variable named SUM in your workspace that shadows MATLAB stock function SUM.

Categorías

Productos

Versión

R2020a

Preguntada:

el 18 de Jul. de 2020

Editada:

el 18 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by