How to print this graph?
5 views (last 30 days)
Show older comments
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))
2 Comments
Rik
on 30 Apr 2019
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)
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!