From: aurelien monnet on 14 Dec 2009 10:36 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 14 Dec 2009 11:10 "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 14 Dec 2009 11:13 help annotation Specifically look at the 'arrow' option.
From: kinor on 15 Dec 2009 04:39 "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
|
Pages: 1 Prev: color transfer between images using MATLAB Next: I18n:LocaleDatabaseNotFound |