Dimensions of arrays being concatenated are not consistent.
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    gjashta
 el 8 de Mayo de 2019
  
    
    
    
    
    Comentada: Matt J
      
      
 el 9 de Mayo de 2019
            I want to bin the price values in 5 bins and  for each bin to group the demand values AND 
then calculate the mean and the standard deviation of the demand data for each bin.
Could you please help me to fix the code?
I am trying with the following code but I got this error:
Dimensions of arrays being concatenated are not consistent.
p=Data(:,1);
d=Data(:,2);
partitions = [0 40; 40 55; 55 65; 65 max(x)+1];
for k1 = 1:size(partitions,1)
    ypartmean(k1) = mean(di((pi >= partitions(k1,1)) & (pi < partitions(k1,2))));
    binct(k1) = numel(di((pi >= partitions(k1,1)) & (pi < partitions(k1,2))));
end
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Axes Transformations en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


