Effacer les filtres
Effacer les filtres

CHECKERBOARD

4 vues (au cours des 30 derniers jours)
Andrew
Andrew le 23 Oct 2011
So I've learned the basics of Matlab. I'm in second quarter (opposed to semesters) of Matlab and my teacher posted a question for us. She said that this was a question she asked her students in the class one level above me. There was no picture or example given so I am a little confused
Try to write a function which is of the title "checkerboard" that takes two integers w and n (assume that w is divisible by n) as inputs and creates an image with 'w' pixels in each row and each column, divided into 'n' rows and 'n' columns alternately colored in black and white like a checkerboard. Note that each square in the checker-board is of size w/n = x, i.e., 400/8 = 50
  2 commentaires
the cyclist
the cyclist le 23 Oct 2011
If the objective of the question is unclear to you, I suggest you talk to your teacher. If the objective is clear, but HOW to accomplish the objective is unclear, then you will get the most help here if you show us the code you've already written, and describe where you are stuck or what errors you are getting.
Andrew
Andrew le 23 Oct 2011
a hint would be nice to start. How would I begin?

Connectez-vous pour commenter.

Réponses (1)

bym
bym le 23 Oct 2011

Catégories

En savoir plus sur Get Started with Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by