CHECKERBOARD
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
the cyclist
am 23 Okt. 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.
Antworten (1)
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!