O'Reilly logo

MATLAB Graphics and Data Visualization Cookbook by Swapnonil Banerjee, Nivedita Majumdar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scalar and vector data with a combination of techniques

This recipe was created to demonstrate how to combine various techniques such as the use of isosurface, isonormal computations, lighting parameters considerations, view angle considerations, transparency, contourslice, streamlines , streamtubes, and cone plots to create an enhanced visualization.

Getting ready

You will use the wind dataset that comes with the MATLAB installation to explore these functions. Load the data. Generate some additional variables from the data:

load wind 
wind_speed = sqrt(u.^2 + v.^2 + w.^2);
xmin = min(x(:));xmax = max(x(:));
ymax = max(y(:));ymin = min(y(:));

How to do it...

Perform the following steps:

  1. Create an isosurface with isocaps at wind speed 40. The isocaps ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required