muest=data(:,1);
ev=data(:,2);
ch1=data(:,3);
totalmuestras=length(muest);
totaleventos=max(ev);
H=zeros(totaleventos,1);
for i=1:totaleventos
for j=1:26
H(i)=H(i)+1*ch1(j+26*(i-1));
end
end
nbins=max(H)-min(H);
I want translate this code to C++, my problem is how know what is the best estrategy (library) to manipulate vectors and open the file
i can use ifstream or fopen i dont know.
hopefully they can guide me.
thanks.