fas <faisalmufti@gmail.com> wrote in message <7ffd69af25b64b5f9409cea774596f9b@a12g2000pro.googlegroups.com>...
> I want to plot a 3d curvature, where I provide a angle of curvature
> (how curve it should be ) and at what angle should it be in xyz
> plane.
> I have written this
> x = linspace(1,1,60); y=linspace(1,1,50);
> angle=(40)*(pi/180);
> xn=x*angle;yn=y*angle;
> [xIndex, yIndex] = meshgrid(xn, yn);
> v = sqrt(xIndex.^2 + yIndex.^2);
> g_angle=v(1:50,1:60);
>
> But it is symmetric centered around zero. I do not know how to change
> the curvature and direction.
I don't understand what you are trying to do here, Fas. You have constructed a mesh of two angular values in radians, and then you have computed a mesh of the square roots of the sums of their squares which you call 'g_angle'. What significance is there in that? I don't know of any natural situation where one angle is the square root of the sum of the squares of two other angles. And I certainly don't understand its connection with the concept of curvature.
Also I don't know what you mean by an "angle of curvature". Curvature, yes, but angle of curvature, no. Curvature is the rate of change of angle with respect to arclength.
What do you mean by the "xyz plane". The x, y, z coordinates define a threedimensional vector space, not a plane which is twodimensional.
I would suggest you attempt to restate your problem in much more precise terms so we can understand you.
Roger Stafford
