Please let me know how to fix my code. I am unable to make mat lab run.
Here is my code so far:
I created a file and saved it as sum_of_cubes.m
for n=1:20
[sum]=sum_of_cubes(n)
end
I created a new live script, then ran it (or attempted to).
sum=0;
[sum]=sum_of_cubes(20)
Please see the homework prompt below.
Best Answer