How to create a checkerboard using fprintf?
Mostra commenti meno recenti
I already have the code for the checkerboard. The problem is that the order of the symbols are not correct.
for a=1:10
for b=1:5
fprintf('X')
fprintf('O')
end
fprintf('\n')
end
I want it so the first row ends with O and the second row ends with X. Can you please help me on this with a simple solution that does not take a lot of lines.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!