| MATLAB Central > MATLAB Newsreader > Indexing Problem |
|
|
|
I've come across a small indexing problem and I'm hoping that you guys can help me. I have two 7x1 vectors, X & Y, where every three sets of points represent the coordinates of a right triangle, e.g. x(1), y(1), x(2), y(2), x(3), and y(3) give the three points of a right triangle (total of 3 triangles in the vectors). I'm simply trying to find one angle of the triangle by using arctan. This is a very simply calculation, but I have to do it many, many times. So I figured I could automate it by doing this in MATLAB: |
|
This is the only solution that I can think of that will solve the problem. I can always just add this after the loop: |
|
On Feb 28, 3:57 pm, "Ali Moradi" <kimus...@gmail.com> wrote: |
|
TideMan <mulgor@gmail.com> wrote in message <8833b86c-e37d-4c84-98d3-85cf3643d638@k2g2000pro.googlegroups.com>... |
|
On Feb 28, 4:54 pm, "Ali Moradi" <kimus...@gmail.com> wrote: |
|
Okay, I see what you mean. So outside of a loop, |
|
"Ali Moradi" <kimusubi@gmail.com> wrote in message <hmcqnu$7dj$1@fred.mathworks.com>... |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message |
|
"Matt Fig" <spamanon@yahoo.com> wrote in message <hmctv5$1lb$1@fred.mathworks.com>... |
|
On Feb 28, 7:10 pm, "Ali Moradi" <kimus...@gmail.com> wrote: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
Contact us at files@mathworks.com
