Incomplete plot of an integral function
Hi,
I’m having a problem plotting an integal function. Basically, the graph comes out incomplete. Am I doing something wrong or is there a more efficient way to plot the intgral of function (f)? I’ve attached the graph I’m getting and the code I’m using. Your help is greatly appreciated.
syms t X Y;
d=0.5;
f= 121864 *(exp(-2*(((X-(-d*cos(628*t)+7*t)).^2) + ((Y-(d*sin(628*t))).^2))/0.0002)) ;
Z =int(f,t,0,0.4);
fsurf(Z,[-0.1 1.22 -0.61 0.61],’EdgeColor’,’none’);
view([0,90]);
colormap jet;
colorbar;
ax = gca;
ax.FontSize = 24;
xlabel(‘X(mm)’)
ylabel(‘Y(mm)’)
zlabel(‘E=J/mm^2’)Hi,
I’m having a problem plotting an integal function. Basically, the graph comes out incomplete. Am I doing something wrong or is there a more efficient way to plot the intgral of function (f)? I’ve attached the graph I’m getting and the code I’m using. Your help is greatly appreciated.
syms t X Y;
d=0.5;
f= 121864 *(exp(-2*(((X-(-d*cos(628*t)+7*t)).^2) + ((Y-(d*sin(628*t))).^2))/0.0002)) ;
Z =int(f,t,0,0.4);
fsurf(Z,[-0.1 1.22 -0.61 0.61],’EdgeColor’,’none’);
view([0,90]);
colormap jet;
colorbar;
ax = gca;
ax.FontSize = 24;
xlabel(‘X(mm)’)
ylabel(‘Y(mm)’)
zlabel(‘E=J/mm^2’) Hi,
I’m having a problem plotting an integal function. Basically, the graph comes out incomplete. Am I doing something wrong or is there a more efficient way to plot the intgral of function (f)? I’ve attached the graph I’m getting and the code I’m using. Your help is greatly appreciated.
syms t X Y;
d=0.5;
f= 121864 *(exp(-2*(((X-(-d*cos(628*t)+7*t)).^2) + ((Y-(d*sin(628*t))).^2))/0.0002)) ;
Z =int(f,t,0,0.4);
fsurf(Z,[-0.1 1.22 -0.61 0.61],’EdgeColor’,’none’);
view([0,90]);
colormap jet;
colorbar;
ax = gca;
ax.FontSize = 24;
xlabel(‘X(mm)’)
ylabel(‘Y(mm)’)
zlabel(‘E=J/mm^2’) integral, integration, plotting, 3d plots MATLAB Answers — New Questions