Home My Page Projects MPTK: The Matching Pursuit ToolKit
Summary Activity Forums Tracker Lists Docs News SCM Files

Forum: help

Monitor Forum | Start New Thread Start New Thread
mpf.m [ Reply ]
By: Clothilde Melot on 2008-02-19 15:34
[forum:9519]
Dear Remi

Here is a rather strange bug: the option -l of the function mpf is working in a terminal using the "normal" MPTK but the Matlab function mpf.m seems to have a bug.
If you find any explanation...!! But anyway this is not such a big deal since one of the two functions is working.

Below are the several messages (the one after typing in a terminal and the error message in Matlab).

with best
Clothilde

1.in a terminal:

/usr/local/MPTK-0.5.4/bin/mpf -l "[1:1000]" Bclass.bin Bclasslength.bin ;
mptk DEBUG -- MP_Msg_Server_c -- Entering the messaging server constructor.
mptk DEBUG -- MP_Msg_Server_c -- Exiting the messaging server constructor.
mptk DEBUG -- MPTK_Env_c::environment() - Load successfully the following Block type:
mptk DEBUG -- MPTK_Env_c::environment() - harmonic block.
mptk DEBUG -- MPTK_Env_c::environment() - chirp block.
mptk DEBUG -- MPTK_Env_c::environment() - mclt block.
mptk DEBUG -- MPTK_Env_c::environment() - gabor block.
mptk DEBUG -- MPTK_Env_c::environment() - mdst block.
mptk DEBUG -- MPTK_Env_c::environment() - constant block.
mptk DEBUG -- MPTK_Env_c::environment() - anywavehilbert block.
mptk DEBUG -- MPTK_Env_c::environment() - dirac block.
mptk DEBUG -- MPTK_Env_c::environment() - nyquist block.
mptk DEBUG -- MPTK_Env_c::environment() - mdct block.
mptk DEBUG -- MPTK_Env_c::environment() - anywave block.
mptk ERROR -- MP_FFT_Interface_c::init_fft_library_config() - fftw wisdom file with path /usr/local/MPTK-0.5.4/bin/default_fftw_wisdom_file doesn't exist .
mptk DEBUG -- MPTK_Env_c::environment() - No fftw Plan well formed was found.
mpf DEBUG -- Parsed interval [1:1000]: min=1 max=1000 includeMin=1 includeMax=1 negate=0
mpf DEBUG -- When exiting getopt, optind is [3].
mpf DEBUG -- (argc is [5].)
mpf DEBUG -- Read input book file name [Bclass.bin].
mpf DEBUG -- Read output bookYes file name [Bclasslength.bin].
mpf msg -- Out of the [28] original atoms, [12] atoms satisfy the required properties.
mpf msg -- Out of the [28] original atoms, [16] atoms DO NOT satisfy the required properties.
mptk DEBUG -- MP_Book_c::~MP_Book_c() - Deleting book...
mptk DEBUG -- MP_Book_c::~MP_Book_c() - Done.
mptk DEBUG -- MPTK_Env_c::release_environnement() - The fftw Plan is not saved.
mptk DEBUG -- ~MP_Msg_Server_c -- Entering the messaging server destructor.
mptk DEBUG -- ~MP_Msg_Server_c -- Exiting the messaging server destructor.

2.using Matlab

Bclasslength= mpf(Bclass,'l','"[1:1000]"');
Warning: This file is no longer maintained
> In bookwrite at 23
In mpf at 23

mystring =

setenv LD_LIBRARY_PATH /usr/local/MPTK-0.5.4/lib;/usr/local/MPTK-0.5.4/bin/mpf tempbook.bin -l "[1:1000]" -L "[1:1000]" tempyes.bin tempno.bin

mptk DEBUG -- MP_Msg_Server_c -- Entering the messaging server constructor.
mptk DEBUG -- MP_Msg_Server_c -- Exiting the messaging server constructor.
mptk DEBUG -- MPTK_Env_c::environment() - Load successfully the following Block type:
mptk DEBUG -- MPTK_Env_c::environment() - harmonic block.
mptk DEBUG -- MPTK_Env_c::environment() - chirp block.
mptk DEBUG -- MPTK_Env_c::environment() - mclt block.
mptk DEBUG -- MPTK_Env_c::environment() - gabor block.
mptk DEBUG -- MPTK_Env_c::environment() - mdst block.
mptk DEBUG -- MPTK_Env_c::environment() - constant block.
mptk DEBUG -- MPTK_Env_c::environment() - anywavehilbert block.
mptk DEBUG -- MPTK_Env_c::environment() - dirac block.
mptk DEBUG -- MPTK_Env_c::environment() - nyquist block.
mptk DEBUG -- MPTK_Env_c::environment() - mdct block.
mptk DEBUG -- MPTK_Env_c::environment() - anywave block.
mptk ERROR -- MP_FFT_Interface_c::init_fft_library_config() - fftw wisdom file with path /usr/local/MPTK-0.5.4/bin/default_fftw_wisdom_file doesn't exist .
mptk DEBUG -- MPTK_Env_c::environment() - No fftw Plan well formed was found.
mpf DEBUG -- Parsed interval [1:1000]: min=1 max=1000 includeMin=1 includeMax=1 negate=0
mpf DEBUG -- Parsed interval [1:1000]: min=1 max=1000 includeMin=1 includeMax=1 negate=0
mpf DEBUG -- When exiting getopt, optind is [5].
mpf DEBUG -- (argc is [8].)
mpf DEBUG -- Read input book file name [tempbook.bin].
mpf DEBUG -- Read output bookYes file name [tempyes.bin].
mpf DEBUG -- Read output bookNo file name [tempno.bin].
mpf error -- Choose either one of --length=/-l or --Length=/-l.
mpf error -- Please check the syntax of your command line. (Use --help to get some help.)

ans =

1

Warning: This file is no longer maintained
> In bookread at 25
In mpf at 26
??? Error using ==> bookread
Can't open file [tempyes.bin]

Error in ==> mpf at 26
varargout{1} = bookread('tempyes.bin');