Utility3D

Utility3D - 'Parent,figure1 xlabel(axes1'Qa ylabel(axes1'Qb zlabel(axes1'Utility grid(axes1'on hold(axes1'all h=meshc(X,Y,U set(h'FaceColor'interp

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

View Full Document Right Arrow Icon
x1=1:200; % x vector y1=1:200; % y vector y % Define utility function over range [X,Y]=meshgrid(x1,y1); U=sqrt(X)+sqrt(Y); U % Indifference curve for U==U0 x2=X(U==10) y2=Y(U==10) x3=X(U==15) y3=Y(U==15) y % Plot it all % %% Create figure figure1 = figure; colormap bone %% Create axes axes1 = axes(. .. 'CameraPosition',[-177.8 -672.4 93.97],. .. 'CameraUpVector',[0.7289 2.312 0.8746],.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .. 'Parent',figure1); xlabel(axes1,'Qa'); ylabel(axes1,'Qb'); zlabel(axes1,'Utility'); grid(axes1,'on'); hold(axes1,'all'); h=meshc(X,Y,U) set(h, 'FaceColor','interp') % set(h,'EdgeColor','none',. .. % 'FaceColor','interp',. .. % 'MarkerFaceColor','auto',. .. % 'FaceLighting','none',. .. % 'EdgeLighting','flat'); %...
View Full Document

This note was uploaded on 04/26/2010 for the course ECON 101 taught by Professor Staff during the Spring '08 term at Vassar.

Ask a homework question - tutors are online