필터 지우기
필터 지우기

CHECKERBOARD

조회 수: 4 (최근 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 CenterFile Exchange에서 Get 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