Problem 45370. Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6
'************' '***** *****' '**** ****' '*** ***' '** **' '* *' '* *' '** **' '*** ***' '**** ****' '***** *****' '************'
Solution Stats
Problem Comments
-
2 Comments
Alireza yarmohammadi
on 8 Jul 2021
Hi Asif tell my why this code wont work??
B=char(tril(ones(5),0)*42)
y=[flipud(B) B';B fliplr(B)]
Dyuman Joshi
on 8 Jul 2021
Compare unique elements in your solution with the ones in test suite
Solution Comments
Show commentsProblem Recent Solvers27
Suggested Problems
-
2444 Solvers
-
Compute a dot product of two vectors x and y
972 Solvers
-
Determine the number of odd integers in a vector
681 Solvers
-
Append two matrix as shown below example
220 Solvers
-
Matlab Basics - Set unwanted parts of a vector to zero
240 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!