player_x = 1;
r = input('select a row');
c = input('select a column');
tictactoe_board(r,c) = player_x

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 12월 2일
편집: KALYAN ACHARJYA 2021년 12월 2일

0 개 추천

There are multiple ways (Any One)
  1. Store the r and c variable data in text file or other files, like excel (see save function)
  2. 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!

카테고리

도움말 센터File Exchange에서 Strategy & Logic에 대해 자세히 알아보기

질문:

2021년 12월 2일

편집:

2021년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by