Draw arc with specified angle difference
Mostra commenti meno recenti
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 Commenti
Star Strider
il 9 Giu 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
il 9 Giu 2021
Modificato: Elysi Cochin
il 9 Giu 2021
Elysi Cochin
il 9 Giu 2021
Risposta accettata
Più risposte (2)
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 Commento
Elysi Cochin
il 9 Giu 2021
Modificato: Elysi Cochin
il 9 Giu 2021
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

