image thumbnail
from MatLab Course Part-1 (AR.) by GAMAL ALKIRSHI
This is my Matlab's course in Taiz university\Yemen, it is good for students and every one who wan

Lab4_ex_6.m
%Lab4_ex_6
clear all;close all;clc;
%***********************
x=-1:0.1:1;
y=0:0.1:1.5;
%***********************
[X,Y]=meshgrid(x,y);
%[X,Y]=ndgrid(x,y);
F=(2-cos(pi.*X)).*exp(Y);
%***********************
surf(X,Y,F)
xlabel('X')
ylabel('Y')
zlabel('F(x,y)')
title('Surf Plot')
figure
mesh(X,Y,F)
xlabel('X')
ylabel('Y')
zlabel('F(x,y)')
title('\it Mesh Plot')
figure
contour(X,Y,F)
xlabel('X')
ylabel('Y')
title('\it Mesh Plot')

Contact us at files@mathworks.com