I want to generate a pascal matrix of size m

I know that the command is pascal(A) but I dont know how to create a matrix of size m

Answers (1)

please read about function pascal
doc pascal
eg:
m = 4
out = pascal(m)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

on 7 Feb 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!