フィルターのクリア

CHECKERBOARD

2 ビュー (過去 30 日間)
Andrew
Andrew 2011 年 10 月 23 日
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
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.
Andrew
Andrew 2011 年 10 月 23 日
a hint would be nice to start. How would I begin?

サインインしてコメントする。

回答 (1 件)

bym
bym 2011 年 10 月 23 日

カテゴリ

Help Center および File ExchangeGet Started with Image Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by