How to add values in a column of a uitable?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hey guys! Im looking to add my price values in column 3 and display in in the next row under the same column. Like a total of all items. I've tried using 'sum' function but its considering 'sum' as a variable instead. Please help me out! Thank you!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149019/image.png)
0 commentaires
Réponses (1)
Jan
le 14 Avr 2015
sum is considered as a variable only if you have created a variable with this name before. So remove the line, which creates "sum" as a variable and restart the code.
It is more useful if you post the relevant part of the code, because there is no connection between the graphic output and the problem.
Voir également
Catégories
En savoir plus sur Scope Variables and Generate Names dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!