Ask your own question, for FREE!
Mathematics 15 Online
OpenStudy (anonymous):

Can anyone help me with this MATLAB code

OpenStudy (anonymous):

function Pascaltri(k) if k<0 error('Number of Terms Must Be Positive') end PascalTriangle=[1]; for (j=1:k); p=[1]; for (s=1:length(PascalTriangle)-1); p=[p,PascalTriangle(s+1)+PascalTriangle(s)]; end p=[p,1]; disp(p) PascalTriangle=p; end end

OpenStudy (anonymous):

I need a way to print this in this form: 1 1 1 1 2 1 1 3 3 1

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!