Draw arc with specified angle difference
Mostrar comentarios más antiguos
Having 2 datas as attached in Data.mat, how to draw arc with a specified angle difference (angle difference can vary say 15, 30 or any other value as given by user)
The data columns in order are angle, radius, depth
How can i find the center with the attached data, so that both the arcs pass through the center, and display it in x,y,z coordinate
3 comentarios
Star Strider
el 9 de Jun. de 2021
If the angles are radian values, the data each describe a descending spiral with angles that span nearly 10 radians, or about 1.6 times the circumference of the circle. If they are in degrees, it is almost a straight line, spanning only about 10°.
Please provide details.
Elysi Cochin
el 9 de Jun. de 2021
Editada: Elysi Cochin
el 9 de Jun. de 2021
Elysi Cochin
el 9 de Jun. de 2021
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 9 de Jun. de 2021
0 votos
See the FAQ again:
1 comentario
Elysi Cochin
el 9 de Jun. de 2021
Wha about this representation?
s = load('data.mat');
t = linspace(0,1,20)*pi/180; % angle array
[X,Y,Z] = deal( zeros(10,20) ); % preallocation matrices
for i = 1:10
[X(i,:),Y(i,:)] = pol2cart(t*s.Data1(i,1),s.Data1(i,2)); % create arc
Z(i,:) = s.Data1(i,3); % depth
end
surf(X,Y,Z)
1 comentario
Elysi Cochin
el 9 de Jun. de 2021
Editada: Elysi Cochin
el 9 de Jun. de 2021
Categorías
Más información sobre Operating on Diagonal Matrices 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!

