convert 1-d radial profile to a 2-d circular matrix

1 Ansicht (letzte 30 Tage)
Optical_Stress
Optical_Stress am 25 Apr. 2018
Hi,
I'm struggling to convert a 1-d radial profile to a 2-d circular matrix, my current process yields a rectangular matrix instead. So i guess i'm close, but i'm not sure how to convert the rectangular matrix into a circular one.
v_theta = cd(radiusc{3});
radius_r = radiusc{k};
theta = linspace(0,2*pi(),length(radiusc{k}));
theta_y = sin(v_theta)';
theta_x = cos(v_theta)';
v_y = cd(radiusc{k}).*theta_y; v_x = cd(radiusc{k}).*theta_x;
v_theta = sqrt(v_y.^2+v_x.^2);
imagesc(v_theta);
I get the following image (See attachment).

Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by