- Joined
- 6/26/08
- Messages
- 8
- Points
- 11
Heres the the deal I have a program I'm writing in matlab for a class and thus far Ive made a function that saves values in an array.
array 1: x = [a1 a2 a3]
array 2: y = [b1 b2 b3]
the size of the array will be known, I need to use another function(already made) call it f to do the following: f(a1,b1), f(a2,b2) etc. I know how to do the iterating and loops and stuff but I don't know how to access the particular elements of the arrays. How do you access specific elements of arrays?
array 1: x = [a1 a2 a3]
array 2: y = [b1 b2 b3]
the size of the array will be known, I need to use another function(already made) call it f to do the following: f(a1,b1), f(a2,b2) etc. I know how to do the iterating and loops and stuff but I don't know how to access the particular elements of the arrays. How do you access specific elements of arrays?