Pathhacker

0 63 0
MATLAB code to vizualize the non existence of limit and discontinuity of given function

MATLAB code to vizualize the non-existence of limit and discontinuity of  given function

 
clc
clear all
syms x y
f=input(‘Enter the function of x,y’)
x0=input(‘Enter the value of x0’);
y0=input(‘Enter the value of y)’);
L=input(‘Enter the  value of the function at (x0,y0):’)
r=2;
D=[x0-r,x0+r,y0-r,y0+r]
ezsurf(f,D)
holdon
L1=limit(limit(f,x,x0),y,y0)
plot3(x0,y0,L1,’r:+’);
holdon
L2=limit(limit(f,y,y0),x,x0)
plot3(x0,y0,L2,’b:*’);
plot3(x0,y0,L,’r:0’);
shading(‘flat’)
if((L1==nan)||(L2==nan)||(L1~=L2))
display(‘Limit does not  eit’);
break
else
display(‘limit along the axes are same ‘)
end

Tags

MATLAB code to visualize 3D vector field MATLAB code to visualize 3D vector field Syms x y…
by sravan
0 64 0
Your nameYour emailYour text

Leave a Reply

Log in
Register
Send message