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;
y=[ 0 1 0;
1 1 1;
0 1 0];
please pay attention input will be always odd nubmer greater than 1;
this problem seems to have stopped working probably due to function name shadowed by cross-product cross function
Return the 3n+1 sequence for n
What is the distance from point P(x,y) to the line Ax + By + C = 0?
07 - Common functions and indexing 6
Length of a short side
How many bottles can you drink?
Basic commands - rounding
Basic commands - amount of inputs
what can you get for exactly amount of money
Basic commands - Greatest common divisor
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office