- 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.
How can I store user input
조회 수: 26 (최근 30일)
이전 댓글 표시
player_x = 1;
r = input('select a row');
c = input('select a column');
tictactoe_board(r,c) = player_x
댓글 수: 0
답변 (1개)
KALYAN ACHARJYA
2021년 12월 2일
편집: KALYAN ACHARJYA
2021년 12월 2일
There are multiple ways (Any One)
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!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!