https://en.wikipedia.org/wiki/Pascal%27s_triangle if the order is: x = 3; the output will be:
output = [0 0 0 1 0 0 0;
0 0 1 0 1 0 0;
0 1 0 2 0 1 0;
1 0 3 0 3 0 1]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers39
Suggested Problems
-
Find common elements in matrix rows
2722 Solvers
-
476 Solvers
-
Sum of first n terms of a harmonic progression
525 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
897 Solvers
-
Simple equation: Annual salary
4273 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!