MATLAB Answers

How to make a diamond with asterisks?

16 views (last 30 days)
Juan Zegarra
Juan Zegarra on 30 Apr 2019
Answered: Naman Bhaia on 3 May 2019
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

  1 Comment

Rik
Rik on 30 Apr 2019
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.

Sign in to comment.

Accepted Answer

Naman Bhaia
Naman Bhaia on 3 May 2019
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 Comments

Sign in to comment.

More Answers (0)


Translated by