I have a vector filed given on a Cartesian grid with two vector components Uc and Vc (attached). My grind has 14 rows (-1:0.25:2.25) and 14 columns (-1.5:0.25:1:75). The attached figure is that vector field plotted in the following way:
dx = 0.25; dy = dx;
nc = 14; nr = 14;
[x,y] = meshgrid(0:dx:(nc-1)*dx,0:dy:(nr-1)*dy);
I have to do this flipud and -Vc in order to get the match with the published version of that figure. I am reconstrcuting a figure from one paper. My main problem is the following. From x = y = 0 point (center), I need to:
- Obtain the radial comonent of vector (radially outwards or inwards) in each grid point from Vc and Uc;
- Plot these radial components, so I have a tyical polar graph where the arrous are diviring (or converging) away (or towards) the center. However, the length of these arrows needs to be the radial component of the vector field as described in 1.
Thank in advance,