0001 function Jact = vb_convert_current_j(Zact, Wact, Lact)
0002
0003
0004
0005
0006
0007
0008
0009
0010 [Njact, Tall, Ntry] = size(Zact);
0011
0012 if Njact==0, Jact = Zact; return; end;
0013
0014 [Njact_ex , NWact]= size(Wact);
0015
0016 if NWact*Lact ~= Njact,
0017 fprintf('size(W)= [%d x %d], size(Zact)= %d, L = %d\n', ...
0018 Njact_ex, NWact, Njact, Lact)
0019 error('Size of W is not matched to J')
0020 end
0021
0022 Jact = Wact * reshape(Zact, [Njact/Lact, Lact*Tall*Ntry]);
0023 Jact = reshape(full(Jact), [Njact_ex*Lact, Tall, Ntry]);
0024
0025 return