Rank: 456 based on 217 downloads (last 30 days) and 12 files submitted
photo

Bertrand Dano

E-mail
Company/University
University of Miami

Personal Profile:
Professional Interests:
Fluid Mechanics and Aerodynamics

 

Watch this Author's files

 

Files Posted by Bertrand View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Jul 2009 Screenshot Savecampos-Loadcampos Save & load all camera parameters for re-plotting 3D data or comparison. Author: Bertrand Dano 3d plot, camera viewpoint, visualization 8 0
05 Jul 2009 Screenshot SnapRB Creates a red-blue anaglyth from current 3D figure. Author: Bertrand Dano 3d, stereoscopic, visualization 7 0
19 Jun 2009 Screenshot QuiverS Quiver vector plot with reference vector showing scale Author: Bertrand Dano vector plot, fluid dynamics, aerodynamics, oceanography 23 2
11 May 2009 Screenshot Uquiver Draw unscaled color vectors in 2D Author: Bertrand Dano aersopace, fluid mechanics, atmospheric, oceanography, vector fields 10 1
08 May 2009 Screenshot Streamcolor Draw 2D or 3D color streamlines. Author: Bertrand Dano aerospace, fluid, streamlines, vector fields, velocity fields 21 1
Comments and Ratings on Bertrand's Files View all
Updated File Comment by Comments Rating
25 Apr 2014 Quiverc Creates a color quiver plot with arrows colors according to the magnitude of the vector. Author: Bertrand Dano Silas

This is just great thanks!

22 Jan 2014 Quiverc Creates a color quiver plot with arrows colors according to the magnitude of the vector. Author: Bertrand Dano IceQueen

This is awesome. However i tried to look into it to get a '3D' version, like quiver3 as Joe posted june 2013. Does it exist?

26 Jun 2013 Streamcolor Draw 2D or 3D color streamlines. Author: Bertrand Dano Mathieu

Great function!
I found one bug, since a colorbar of sizze 64 is assumed, Vcol should be defined as:

Vcol=uint8(floor(interp2(x,y,vmag,X,Y)/vmax*size(cmap,1)));

I also managed to speed up the function by looping through the colormap instead of X. This makes the function 100 times faster. In 2d, this gives:

for k = 1:length(verts);
vv = verts{k};
if ~isempty(vv)
X=vv(:,1); Y=vv(:,2);
Vcol=uint8(floor(interp2(x,y,vmag,X,Y)/vmax*size(cmap,1)));
Vcol(Vcol==0)=1;
for j=1:size(cmap,1),
pos = find(Vcol==j);
if(~isempty(pos) & pos(1)==1), pos(1)=[]; end
if ~isempty(pos),
tempx = [X(pos-1) X(pos) NaN(size(pos))]';
tempy = [Y(pos-1) Y(pos) NaN(size(pos))]';
line(tempx(1:end-1),tempy(1:end-1),'color',cmap(j,:),'linewidth',lw);
end
end
end
end

11 Jun 2013 Quiverc Creates a color quiver plot with arrows colors according to the magnitude of the vector. Author: Bertrand Dano Joe

Hi Dano, this is a great code! Is there a variation of this code of this using 3D data (similar to quiver3)? Thanks

27 Mar 2012 Uquiver Draw unscaled color vectors in 2D Author: Bertrand Dano Diana

I used this function and my plot doesn't look at all like the one in the picture, it just made a vertical profile, one colored line. Could you tell me if I may have done or specify something wrong.Also do you think it may be possible to use latitude and longitude as the x and y axis? Thank you.

Contact us