octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help running sample quiver code in Matlab


From: Parsiad Azimzadeh
Subject: Re: Help running sample quiver code in Matlab
Date: Wed, 16 Oct 2013 17:35:08 -0400

>> [x,y] = meshgrid (0:0.2:2,0:0.2:2);
>> u = cos (x) .* y;
>> v = sin (x) .* y;
>> h = quiver (x,y,u,v);
>> get (h, 'MaxHeadSize')

ans =

    0.2000

>> print -dpng quiv_tst.png

On Wed, Oct 16, 2013 at 5:26 PM, Rik <address@hidden> wrote:
> I'm trying to get visual compatibility with Matlab for most of Octave's
> plot routines.  For quiver I have code that visually produces
> near-identical results, but the arrow head size is 0.33 instead of 0.2.  I
> wonder if the Matlab documentation is inaccurate.  Could someone try the
> following and send back the answer and the png file?
>
> Test Code:
> [x,y] = meshgrid (0:0.2:2,0:0.2:2);
> u = cos (x) .* y;
> v = sin (x) .* y;
> h = quiver (x,y,u,v);
> get (h, 'MaxHeadSize')
> print -dpng quiv_tst.png
>
> Cheers,
> Rik



-- 
Parsiad Azimzadeh
http://cs.uwaterloo.ca/~pazimzad

Attachment: quiv_tst.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]