Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'nested loops' topicStudent Support Forum > General > "nested loops"

Help | Reply To Topic
Author Comment/Response
Thomas Keller
12/30/09 9:17pm

hi guys,
I'm new to mathematica and I'm trying to understand how to use nested for loops and asignments to matrices. I won't argue that the following code is not the most useful, but I'm more interested in the syntax. How would I program this in mathematica?

Best Regards,
Thomas

counter=0
for i=1:10
for j=1:10
a(i,j)=i;
b(i,j)=j;
c(i,j)=atan2(a(i,j),b(i,j))
end
end


URL: ,
Help | Reply To Topic