end if ~isempty(focI)
sumbbaFocI=0; sFocI=size(focI,2); for elB=1:sFocI
ind=findeqcell(expert.focal,focI(elB)); if ~isempty(ind)
sumbbaFocI=sumbbaFocI+expert.bba(ind);
end end DSmP.DSmP(focA)=DSmP.DSmP(focA)+expert.bba(focB)...

*(sumbbaFocI+epsilon*sFocI)/(sumbbaFocB+epsilon*sFocB);
end end end 5.4 Decoding and generation of DΘ
r For the displays, we must decode the focal elements and/or the final decision. The function 17 decodes the focal elements in the structure expert that contain normally only one expert. This function calls the function 18 that really does the decoding for the user. This function is based on the generation of DΘ
r given by the function 21 that a is modified and adapted code from [11]. To generate DΘ
r we first must create the intersection basis. Hence in the function 18 we use a loop of 2Θ in order to generate the basis and in the same time to scan the power set 2Θ and also the elements of the intersection basis. These two basis
(intersection and union) are in fact concatenated during the construction, so we scan also some elements such intersections of previous unions and unions of previous intersections. This generated set of elements does not cover DΘ
r
.

When all the searching focal elements (that can be only one decision element)
are found, we stop the function and avoid to generate all DΘ
r. Hence if the searching elements are not all found after this loop, we begin to generate DΘ
r and stop when all elements are found. So, with luck, that can be fast.

We can avoid to generate DΘ
rfor only the display if we use the Smarandache's codification. The function 19 transforms the used code of the focal elements in the structure expert in the Smarandache's code, easer to understand by reading.

This function calls the function 20 that really does the transformation. The focal elements are directly in string for the display.

## Function 17 - Decodingexpert Function

function [expertDecod]=decodingExpert(expert,Theta,DTheta) % The goal of this function is to decode the focal elements in expert % % [expertDecod]=decodingExpert(expert,Theta) % % Inputs:
% expert = containt the structure of the list of focal elements after % combination and corresponding bba for all the experts (generally use