From: aurelien monnet on
Hi all,

I'm new in matlab and this is my first big issue.

I have a text file with x,y,z coordinates for some vectors (hopefully not that much).
eg :
Vector[0] = ( 0.477464, 0.87841, 0.0205779 )
Vector[1] = ( 0.0509134, 0.782324, 0.620787 )

I want to display these vectors all starting from 0,0,0 and see how are their directions.

I entered thing like this :
vectors=[0.477464 0.87841 0.0205779;0.0509134 0.7823 0.620787;0.0509134 0.782324 0.620787];

How should I do then?

Thanks very much for your answer.
From: Wayne King on
"aurelien monnet" <aurelsan(a)gmail.com> wrote in message <hg5m11$ip2$1(a)fred.mathworks.com>...
> Hi all,
>
> I'm new in matlab and this is my first big issue.
>
> I have a text file with x,y,z coordinates for some vectors (hopefully not that much).
> eg :
> Vector[0] = ( 0.477464, 0.87841, 0.0205779 )
> Vector[1] = ( 0.0509134, 0.782324, 0.620787 )
>
> I want to display these vectors all starting from 0,0,0 and see how are their directions.
>
> I entered thing like this :
> vectors=[0.477464 0.87841 0.0205779;0.0509134 0.7823 0.620787;0.0509134 0.782324 0.620787];
>
> How should I do then?
>
> Thanks very much for your answer.

Hi, assuming you know that your syntax listed above is not valid Matlab syntax, see the documentation for quiver3()

>>doc quiver3

Hope that helps,
Wayne
From: Matt Fig on
help annotation

Specifically look at the 'arrow' option.
From: kinor on
"aurelien monnet" <aurelsan(a)gmail.com> wrote in message <hg5lno$59$1(a)fred.mathworks.com>...
> Hi all,
>
> I'm new in matlab and this is my first big issue.
>
> I have a text file with x,y,z coordinates for some vectors (hopefully not that much).
> eg :
> Vector[0] = ( 0.477464, 0.87841, 0.0205779 )
> Vector[1] = ( 0.0509134, 0.782324, 0.620787 )
>
> I want to display these vectors all starting from 0,0,0 and see how are their directions.
>
> I entered thing like this :
> vectors=[0.477464 0.87841 0.0205779;0.0509134 0.7823 0.620787;0.0509134 0.782324 0.620787];
>
> How should I do then?
>
> Thanks very much for your answer.

Hi Aurelsan,

help quiver3

kinor