Problem 43125. cross in array
Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of array; x=3;
y=[ 0 1 0; 1 1 1; 0 1 0];
please pay attention input will be always odd nubmer greater than 1;
Solution Stats
Problem Comments
-
2 Comments
Alfonso Nieto-Castanon
on 21 Oct 2016
this problem seems to have stopped working probably due to function name shadowed by cross-product cross function
Aditya Jain
on 23 Oct 2016
Fixed it
Solution Comments
Show commentsProblem Recent Solvers178
Suggested Problems
-
Select every other element of a vector
33718 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
564 Solvers
-
4892 Solvers
-
Matlab Basics II - Extract last 3 elements of a vector
248 Solvers
-
2065 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!