artGallery - %observed at an elevation of 90 degrees...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function artGallery(x,y,z) %Given x, y, and z data, makes %four different plots of the data in the same window (you will need to %utilize subplot). The first plot needs to be observed at an elevation %of 90 degress. The second plot needs to be viewed at a horizontal %azimuth of 90 degrees. The axis for the third plot needs to be as tight %as possible, and the axis for the fourth plot needs to be as square as %possible. See the given example plots. %usage: artGallery(x,y,z) plot3(x,y,z); %creates the 3D plot with the given coordinates subplot(2,2,1); %creates a 2x2 subplot space with the plot above in the 1st position plot3(x,y,z); %creates the 3D plot with the given coordinates view(0,90);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %observed at an elevation of 90 degrees subplot(2,2,2); %creates a 2x2 subplot space with the plot above in the 2nd position plot3(x,y,z); %creates the 3D plot with the given coordinates view(90,0); %observed at a horizontal azimuth of 90 degrees subplot(2,2,3); %creates a 2x2 subplot space with the plot above in the 3rd position plot3(x,y,z); %creates the 3D plot with the given coordinates axis tight; %uses axis function to tighten the axes subplot(2,2,4); %creates a 2x2 subplot space with the plot above in the 4th position plot3(x,y,z); %creates the 3D plot with the given coordinates axis square; %uses the axis function to make the axes equal in length end...
View Full Document

This note was uploaded on 10/21/2010 for the course CS 1371 taught by Professor Stallworth during the Spring '08 term at Georgia Tech.

Ask a homework question - tutors are online