Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python equivalent of Matlab code
Post: RE: Python equivalent of Matlab code

(Apr-01-2020, 01:22 AM)scidam Wrote: I suspect that the problem is in the line ip = interpolate.interp2d(Ui,Vi,im,kind='linear'). Could you provide a minimal reproducible example? What are shapes of...
kwokmaster Data Science 5 7,088 Apr-01-2020, 07:49 AM
    Thread: Python equivalent of Matlab code
Post: RE: Python equivalent of Matlab code

Hi scidam, thanks for the reply! I tried the way you mentioned like the following ip = interpolate.interp2d(Ui,Vi,im,kind='linear') out = ip(U,V) where U,V is a 1000*1000 array and im is a 701*...
kwokmaster Data Science 5 7,088 Mar-31-2020, 07:13 PM
    Thread: Python equivalent of Matlab code
Post: Python equivalent of Matlab code

I am converting a section of Matlab code from others as my project and I have no idea what it is doing. CC_horiz=bwconncomp(horiz_erode,8); CC_vert=bwconncomp(vert_erode,8); stats_horiz=r...
kwokmaster General Coding Help 1 3,456 Mar-25-2020, 09:29 AM
    Thread: Python equivalent of Matlab code
Post: Python equivalent of Matlab code

I am converting the interp2 function of matlab to python. interp2 However, after searching through the equivalents like interpolate.interp2d, they all only allow 1-D array input, while my function re...
kwokmaster Data Science 5 7,088 Mar-15-2020, 04:58 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020