How to make a diamond with asterisks?
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi can you help me doing this? So far I have this but I'm not sure what to do next or when to write the loops.
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.11.12 PM.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/217404/Screen%20Shot%202019-04-30%20at%203.11.12%20PM.png)
댓글 수: 1
Rik
2019년 4월 30일
The issues with this question are the same as with your other question. Because you don't explain your goal it is hard to help you.
채택된 답변
Naman Bhaia
2019년 5월 3일
Hello Juan,
I believe a question similar to yours has been answered in this MATLAB Answers thread. Check and see if it helps with the issue you are facing.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!