Ask
your own question, for FREE!
Computer Science
53 Online
OpenStudy (alexrobin13):
Need help with MatLab coding (Will medal) I'm trying to code for Pascal's triangle (quick Google will explain it). My code is: function[P]=Pascales(n) for i=1:n B(i, 1)=1 for i=2:n for j=2:n B(i,j)=B(i-1,j)+B(i-1,j-1) end end end But I keep getting the error: Index exceeds matrix dimensions. Error in Pascales (line 7) B(i,j)=B(i-1,j)+B(i-1,j-1) Please help.
Still Need Help?
Join the QuestionCove community and study together with friends!
OpenStudy (rsmith6559):
Are there supposed to be commas between i and j inside the parentheses?
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
OLIVER69:
Made another edit, I think I'm getting better. This is Ace and My rp character, Romeo.
1 minute ago
3 Replies
2 Medals
ShadowKid3:
So, I made this character I'm thinking of making mini animations with. Any sugges
6 hours ago
7 Replies
0 Medals
luhbabyliyahh:
How you all feeling? You wanna come back and check on the site and like 2025 type
9 hours ago
36 Replies
0 Medals
alyviahwillis:
if anyone has any questions feel free to DM me... I don't mind at all.
10 hours ago
0 Replies
0 Medals
alyviahwillis:
hey yall so how are yall doing today? also if you need someone to talk to let me
10 hours ago
13 Replies
2 Medals
Juss1Jordan:
Sometimes losing a friendship that meant the world to you means that God was keeping you out of things he KNEW you wouldn't be able to handle, God block cer
4 minutes ago
6 Replies
2 Medals
Bbygirl15:
Por quu00e9 es difu00edcil agradarle a tu mejor amigo cuando a u00e9l le agradast
13 hours ago
6 Replies
0 Medals