How to make a diamond with asterisks?

6 ビュー (過去 30 日間)
Juan Zegarra
Juan Zegarra 2019 年 4 月 30 日
回答済み: Naman Bhaia 2019 年 5 月 3 日
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 件のコメント
Rik
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
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 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by