Matlab code를 Python code로 바꾸고 싶습니다.
조회수 418회
clear; clc;
data = xlsread('data3.xlsx');
x = data(:,1);
y = data(:,2);
z = data(:,3);
F = scatteredInterpolant(x,y,z,'linear');
r = linspace(0, 50, 50)'; .
th = linspace(0, 2*pi, 50)';
[R, TH] = meshgrid(r, th);
[X, Y] = pol2cart(TH, R);
Z = F(X, Y);
figure
[c1,h1]=contourf(X, Y, Z, 200);
set(h1, 'edgecolor', 'none');
colormap(jet); colorbar;
set(gca, 'FontSize', 16, 'FontWeight','Bold'); axis square
xlabel('x(mm)','FontSize', 18, 'FontWeight','Bold');
ylabel('y(mm)','FontSize', 18, 'FontWeight','Bold');
figure
plt=surfc(X, Y, Z);
colormap(jet); colorbar;
ax = gca;
ax.ZLim = [0, 1000];
해당 코드를 python 으로 변환하고싶습니다.
-
(•́ ✖ •̀)
알 수 없는 사용자
댓글 입력