siz=size(couple,1);hlife=zeros(siz,1);adf=zeros(siz,1);correlation=zeros(siz,1);sharpe_res=zeros(siz,1);mcoint=zeros(siz,1);performance_k=zeros(siz,1);sharpe_k=zeros(siz,1);performance_res=zeros(siz,1);cl=num2cell(prices);ff=[nomes;cl];%%start*
for ii=1:size(couple,1); looking_up=couple(ii,:); [tf, coldix]=ismember(looking_up,f(ii,:)); prices=ff(:,coldix(tf)); prices=prices(2:end,:); prices=cell2mat(prices); x=prices(:,2); y=prices(:,1); x=flipud(x); y=flipud(y); step1 performance_res(ii,1)=paperoni_o_pezzenti; hlife(ii,1)=halflife; adf(ii,1)=results.adf; correlation(ii,1)=ccor; sharpe_res(ii,1)=sharpe; sharpe_k(ii,1)=ksharpe; performance_k(ii,1)=paperoni_o_pezzentik; mcoint(ii,1)=m_coint;end
Matlab give me the following error:
Input A of class cell and input B of class cell must be cell arrays of strings, unless one is a string.
Best Answer