- 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
12 ビュー (過去 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!