Problem 49592. Matrix Pattern 2
Find the pattern behind the elements of the matrix.
mat_pattern(3) = [
   0   0   1
   1   1   0
   1   0   0];
mat_pattern(4) = [
     0     1     0     1
     1     0     0     0
     1     1     1     0
     0     0     0     0];
Solution Stats
Problem Comments
- 
		2 Comments
		Asif Newaz
    	on 7 Sep 2022
	
	
  	i dont see any pattern here.
		Christian Schröder
    	on 28 Oct 2022
	
	
  	Asif: think about where the ones are, and keep in mind that there's two kinds of indexing in MATLAB, n-dimensional and linear.
Solution Comments
Show commentsProblem Recent Solvers57
Suggested Problems
- 
         
         6924 Solvers 
- 
         Determine if a Given Number is a Triangle Number 386 Solvers 
- 
         Generate a vector like 1,2,2,3,3,3,4,4,4,4 12968 Solvers 
- 
         
         360 Solvers 
- 
         特定の値がベクトル内に含まれているかを確認するコードを書こう 329 Solvers 
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!