I would like to know if it is possible to do the same as the code below without a for loop:
for i=1:length(index) date1{i}=datenum(datos.Date(index(i):end)); Y{i}=(datos.High(index(i):end)+datos.Low(index(i):end))./2; X{i}=[ones(length(Y{i}),1) date1{i}]; b{i}=regress(Y{i},X{i}); tendency{i}=b{i}(1)+b{i}(2)*X{i}(:,2); parallel{i}=std(Y{i});end
Best Answer