given a value n (say 4) - generate the matrix like below
y= [0 1 2 3 4;
-1 0 1 2 3;
-2 -1 0 1 2;
-3 -2 -1 0 1;
-4 -3 -2 -1 0]
What is the next step in Conway's Life?
Create a vector whose elements depend on the previous element
Angles of the hands of a clock
Find the sides of an isosceles triangle when given its area and height from its base to apex
Scalar Matrix Manipulation
Take a binary number as input,rearrange it in any manner such that its value is greater than the original one.output should be all the possible values in decimal.
Game of life - 02
Queen's move - 02
Rotate a matrix without using rot90
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