Hi Alexi,
To create a circular contour plot using your angle, radial distance, and precomputed values, you will need to map your data onto a grid in Cartesian coordinates, then use the "contourf" function to visualize it.
The below code snippet shows how to achieve this using dummy data:
angle = [0 36 72 108 144 180 216 252 288 324 360];
radial = [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
value = rand(length(radial), length(angle));
% Create a meshgrid
[a, r] = meshgrid(deg2rad(angle), radial);
% Convert polar coordinates to Cartesian coordinates
[x, y] = pol2cart(a, r);
% Plot using contourf
figure;
contourf(x, y, value, 'ShowText', 'on');
colorbar;
title('Circular Contour Plot');
xlabel('X');
ylabel('Y');
For more details, please refer to the following MathWorks documentations:
- meshgrid - https://www.mathworks.com/help/matlab/ref/meshgrid.html
- contourf - https://www.mathworks.com/help/matlab/ref/contourf.html
Hope this helps!