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 으로 변환하고싶습니다.

  • (•́ ✖ •̀)
    알 수 없는 사용자

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)