Username Remember Me?
Password   forgot password?
   
   
R=A*w; mtimes error
Posted: 07 July 2009 07:09 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  14
Joined  2009-07-02

Hi,
I’m using prtools ver.4.1.4 on Matlab ver.7.8.0.347 (R2009a) and I encounter a conflict with the mtimes function.
I’m trying to train a batch of classifiers with a batch of datasets (see below).
This code snippet should normally work with prtools, right?

>> A=gendatm;
>> 
A2=gendatm;
>> 
A={A A2}



    
[160x2 dataset]    [160x2 dataset]

>> w1=qdc;
>> 
w2=ldc;
>> 
w={w1 w2}



    
[0x0 mapping]    [0x0 mapping]

>> R=A*w;
??? 
Undefined function or method 'mtimes' for input arguments of type 'cell'.

I reviewed a similar topic on the forum but I haven’t installed the spider toolbox, which is suggested as the problem source.

Profile
 
 
Posted: 08 July 2009 08:22 AM   [ Ignore ]   [ # 1 ]  
Moderator
RankRankRankRank
Total Posts:  250
Joined  2008-11-08

Dear Idimou,

We decided not no overload the cell structure as it may result in a lot of confusion and unexpected behavior. Consequently A*w is not recognized as a possible PRTools command if both, A and w are cells.
So, either one of them should be a non-cell (single dataset or single mapping), or you should write it as map(A,w) which will unpack the cells and run mtimes for every combination of dataset and mapping in the cells.

Bob Duin

Profile