Dear all,
i have the following problem
I want to replace the elements of EER with the corresponding elements from EER1
where EER={datebeg '01/01/2009' '01/07/2009' };EER1={'1' '2' '3' '4'}; and
datebeg =
'01/11/2009' Unfortunately the '01/11/2009' is not replace by '1' and I need to maintain the code as it is; that is using datebeg in EER instead of '01/11/2009' Is there a way of doing this?
I use the following code for the replacement
isAW = strcmp(raw(:, 1), 'EE'); AWtext = raw(isAW, 8); % Only the AW rows
for k = 1:numel(EER) AWtext(strcmp(AWtext, EER{k})) = {EER1{k}};endnew(isAW) = AWtext; thanks
Best Answer