Comments on: Basics: Volume visualization: 6/9 Displays quiver3 and coneplot https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/?s_tid=feedtopost Stuart uses video to share his experiences solving problems with MATLAB day-to-day, interesting new features, plus tips and tricks he has picked up along the way. Mon, 07 Dec 2009 15:22:53 +0000 hourly 1 https://wordpress.org/?v=6.2.2 By: dhull https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1711 Mon, 30 Nov 2009 15:08:55 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1711 @Daniel,

Weird. I just copy pasted your code, and it was all fine.
Still happening for you?

Doug

]]>
By: Daniel Armyr https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1710 Mon, 30 Nov 2009 12:13:05 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1710 OK, seriously guys….
When I run the code below, I get polka-striped pink cones. That was not expected….

[x, y, z]=meshgrid(-1.5:0.5:1.5);
u=x+cos(4*x)+3;
v=sin(4*x)-sin(2*y);
w=-z;
[cx, cy, cz]=meshgrid([-1 0 1]);
c = sqrt(u.^2+v.^2);
h = coneplot(x, y, z, u, v, w, cx, cy, cz, c);
view(-150,20);
set( h, ‘EdgeColor’, ‘none’ );
camlight(‘left’);

]]>
By: Daniel Armyr https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1709 Mon, 30 Nov 2009 12:01:11 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1709 @Nilotpal:
You are correct. The code in this presentation seems to only hilight the most important functions. The person making the presentation has obviously spent significant time prettifying the plots but not published the code for that.

To get a view similar to the one in the movie, type:

>>view(3)

]]>
By: Nilotpal https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1706 Fri, 27 Nov 2009 23:14:12 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1706 Hi, great videos. I’m having a trouble getting the correct output for the code snippet as on 4:05. have implemented just the following code on editor as shown here:

[x, y, z]=meshgrid(-1.5:0.1:1.5);
u=x+cos(4*x)+3;
v=sin(4*x)-sin(2*y);
w=-z;
[cx, cy, cz]=meshgrid([-1 0 1]);
coneplot(x, y, z, u, v, w, cx, cy, cz);

but i ended up getting just a 2D plot in black and white with -1.5 to 1.5 on both axes. nd the cones are plotted inside this 2D plot. Am i doing something wrong or missing something? do i have to add something to this code?

]]>
By: dhull https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1699 Wed, 25 Nov 2009 14:31:43 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1699 @Alex

Thanks for the kind words. I was unable to reproduce the error. Please try again.

Thanks,
Doug

]]>
By: Alex Knight https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1697 Wed, 25 Nov 2009 09:44:35 +0000 https://blogs.mathworks.com/videos/2009/11/20/basics-volume-visualization-69-displays-quiver3-and-coneplot/#comment-1697 Hi,

these videos are great – but I find this one stops playing every time at 2:00. The others have all played just fine. (Windows XP/ Google Chrome).

Alex

]]>