How to print this graph?
조회 수: 1 (최근 30일)
이전 댓글 표시
So far I have this. Please help.
2(n-1)+1 %number of x
n=row
floor(col/2-(n-1)) %number of blanks
floor (row/2-(n-1))
![Screen Shot 2019-04-30 at 3.23.33 PM.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/217406/Screen%20Shot%202019-04-30%20at%203.23.33%20PM.png)
댓글 수: 2
Rik
2019년 4월 30일
The code below should be helpful, but you'll have to explain what exactly you mean by printing. Do you want to have a plot? Print it to the command window? Send it to a real printer to print it on paper?
rows=3;cols=6;
pattern=1-mod(reshape(1:(rows*cols),rows,cols),2)
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!