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!