MIT OCW 18.327 Wavelets phivals.m file Computation of scaling function and wavelet by recursion in Python, numpy, scipy is this right?

I tried to get a hold of Prof. Strang and Dr. Amaratunga, but I’ll put it up here as well.

I’m working through the MIT OCW 18.327 course. In particular, my goal is to learn about and how to implement wavelets because I want to understand and use wavelet colocation. My question in here is directed at phivas.m , under Tools subdirectory, Software Matlab routines, for “Computation of scaling function and wavelet by recursion”,

http://ocw.mit.edu/courses/mathematics/18-327-wavelets-filter-banks-and-applications-spring-2003/tools/phivalsm.htm

I’m trying to get this code to work in Python numpy. In GNU Octave (I don’t have Matlab, I don’t have the money for Matlab), I can’t get it to work; I’m getting error
octave:127> load(“phivals.m”)
octave:128> phivals
error: ‘h’ undefined near line 16 column 13
error: evaluating argument list element number 1
error: called from:
error: /Users/patrick/Documents/TeslaModelSP85D/Wavelets/phivals.m at line 16, column 6
see https://github.com/ernestyalumni/Wavelets/blob/master/18.327-spring-2003/phivals.m I posted it on github to rid of the html encoding.

I have my Python numpy scipy code working. Could you give me some test values to make sure it is outputting the correct values?

The code is on my github:
https://github.com/ernestyalumni/Wavelets/blob/master/18.327-spring-2003/phivals.m

2 thoughts on “MIT OCW 18.327 Wavelets phivals.m file Computation of scaling function and wavelet by recursion in Python, numpy, scipy is this right?

  1. I’ve found your blog about 3 hours ago, and I find it insightful and helpful. Keep up the good work!

    1. Thanks Alan Ihsan! MIT OCW 18.327 is entirely in Matlab; I’m highly concerned with access, so in order to be able to learn about (and use) Wavelets and Filter Banks. A Matlab license is USD$2150. I’ve rewritten about 40% of the code using Python with numpy, scipy, and PyWavelet and posted on github: https://github.com/ernestyalumni/18-327-wavelets-filter-banks I’ll write a formal post on this blog as soon as I can. Thanks for reading and if you have any (negative or positive) feedback to give, don’t hesitate.

Leave a reply to ernestyalumni Cancel reply