There are multiple ways (Any One)
- Store the r and c variable data in text file or other files, like excel (see save function)
- Easiest: diary on, display the user data in command window, once done diary off, it save all reflects data in command window in one text file.
If user data has multiple repetitions, prefer to save in an array, then save the array variable in text file or excel.
Hope it Helps!