how to add all the values generated using for loop
A=[1 2],[3 4],[7 5 6]
value% i am using formula to calculate the value
In this code first it run for [1 2] generates a value-(a)
then it run for  generates a value-(b)
then it run for [4 5 6] and generates a value-(c)
Now i want to add (a)+(b)+(c) after the end statement so i tried with the follwing command sum(value,:) but unable to get the result.
Could anyone please help me on this.