CHECKERBOARD
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
the cyclist
2011 年 10 月 23 日
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.
回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!