How to make a circle of deviation
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Karel Schindler
il 3 Feb 2023
Risposto: Dr. JANAK TRIVEDI
il 3 Feb 2023
HI, I have classic 2D graph of deviations from the radius 100. Its made from two matrices 740x1. And I want to a 2D graph where is a circle R100 and deviations are on that circle. Ty for help
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1283256/image.jpeg)
0 Commenti
Risposta accettata
Dr. JANAK TRIVEDI
il 3 Feb 2023
To plot a 2D graph of deviations from a circle with radius 100, you can use the polar plot function in MATLAB. Here is an example:
% Load the data
deviations = load('deviations.mat');
% Define the radius of the circle
R =
100;
% Create polar coordinates for the deviations
[theta, rho] = cart2pol(deviations(:,1), deviations(:,2));
% Add the circle radius to the polar coordinates
rho = rho + R;
% Plot the deviations on the circle
polarplot(theta, rho);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!