Collecting/tracking a score in a game

Using for loops and running totals (recursion) to collect and sum up user inputs

1 Download

Updated 27 Nov 2021

View License

How to code for loops in MATLAB and how these can be used to collect user inputs. How to code running totals (recursion) to continuously sum up user inputs through each iteration of the loops.
This code is explained in the following YouTube Video:
For Loops and Running Totals (recursion):
For more of my YouTube Videos, check out my MATLAB tutorial playlist:
Also subscribe to my channel (Engineering with Dr. Kelsey Joy):

Cite As

Dr. Kelsey Joy (2023). Collecting/tracking a score in a game (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes