Plotting curves with increasing radius
Mostrar comentarios más antiguos
Dear all,
I wanted to know if there is any way to plot a curve with increasing radius. This curve has to go around a circle.
Thanks for your help.
8 comentarios
Roger Stafford
el 21 de Ag. de 2013
Do you mean the radius - that is, the distance - from some fixed point is increasing, or do you mean the radius of its local radius of curvature is increasing? There is a big difference in these two concepts. What determines the way in which this radius increases? We need more information to be able to help you effectively, James.
Image Analyst
el 21 de Ag. de 2013
Do you mean a spiral? If so, wouldn't both the radius and the radius of curvature increase as the spiral gets larger and larger?
James
el 21 de Ag. de 2013
Image Analyst
el 21 de Ag. de 2013
Then why not just call line() over and over again with longer lines? Why are you calling it a radius? Radius usually means something more or less circular. Please upload a diagram of what you want so we won't have to spend more time guessing what you want.
Walter Roberson
el 21 de Ag. de 2013
What aspect of a spiral does not work for you?
James
el 21 de Ag. de 2013
Image Analyst
el 21 de Ag. de 2013
Bring up your diagram somehow on the computer, be it in Photoshop or whatever. Type alt-Printscreen to capture the current window into the clipboard. Go to http://snag.gy and type control-V to paste it in. Note the URL it gives you and come back here and tell us what it is.
James
el 21 de Ag. de 2013
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 21 de Ag. de 2013
1 voto
You say "I have the data for them" so why don't you just use the plot() function and plot them? Am I missing something???
1 comentario
David Sanchez
el 21 de Ag. de 2013
Try this out:
[x,y] = meshgrid(1:150,1:100);
[th, rho] = cart2pol(x - 75,y - 50); % convert to polar
% spiral centered at (75,50)
Img = sin(r/3 + th);
imagesc(Img); colormap(hot);
axis equal; axis off;
1 comentario
James
el 21 de Ag. de 2013
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!