Ask your own question, for FREE!
Engineering 7 Online
OpenStudy (anonymous):

Can anyone help me with this MATLAB code 3 minutes ago 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!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
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!