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
RE: mpf.m [ Reply ]
By: RĂ©mi Gribonval on 2008-07-07 08:49
[forum:90305]
Dear Clothilde,

This seems to be related to variable substitution in Matlab. When you type

pos=13696;Batom=mpf(B10000,'p','"[pos:pos+1]"');

the mpf command just gets the book, the string 'p' and the string '"[pos:pos+1]"' but not the value of pos. What you need is a technique to substitute the string "pos" with its numerical value, for example using

['"[' num2str(pos) ':' num2str(pos+1) ']"' ]

I hope this helps

Best regards,

Remi.

mpf.m [ Reply ]
By: Clothilde Melot on 2008-07-01 09:15
[forum:85758]
Dear developpers

Once again thank you very much for MPTK !!
We are now trying to get further in the work and we need to use the full possibilities of the function mpf.m

but we find a very strange thing:
consider the command line

pos=13696;Batom=mpf(B10000,'p','"[pos:pos+1]"');

the command line yields the following answer:

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 -p "[pos:pos+1]" tempyes.bin tempno.bin

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 .
mpf error -- Could not read a min value in the interval ([pos:pos+1], pointing at pos:pos+1]).mpf error -- Can't parse an interval after --position=/-p (argument is: [pos:pos+1]).
mpf msg -- Out of the [10000] original atoms, [10000] atoms satisfy the required properties.
mpf msg -- Out of the [10000] original atoms, [0] atoms DO NOT satisfy the required properties.

ans =

0

Warning: This file is no longer maintained
> In bookread at 25
In mpf at 26
Warning: This file is no longer maintained
> In bookread at 25
In mpf at 27

So it is clear that mpf doesn't select nothing.

Then the other command line

Batom=mpf(B10000,'p','"[13696:13697]"');

It yields

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 -p "[13696:13697]" tempyes.bin tempno.bin

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 .
mpf msg -- Out of the [10000] original atoms, [10] atoms satisfy the required properties.
mpf msg -- Out of the [10000] original atoms, [9990] atoms DO NOT satisfy the required properties.

ans =

0

Warning: This file is no longer maintained
> In bookread at 25
In mpf at 26
Warning: This file is no longer maintained
> In bookread at 25
In mpf at 27

So it selected the atoms.

could you help us to fix this problem ???
Thank you very much by advance
with best regards
Clothilde