The variable Edj appears to change size consider preallocating
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jacob Muvingi
el 1 de En. de 2020
Comentada: Jacob Muvingi
el 3 de En. de 2020
VV(1:size(temp,1),d)=temp;
for j=1:n
E(d,j) = y(j,:)*VV(s+1:s+m,d) / (x(j,:)*VV(1:s,d));
end
Ecros =sum(Edj)/n
End
0 comentarios
Respuesta aceptada
Gifari Zulkarnaen
el 1 de En. de 2020
Editada: Gifari Zulkarnaen
el 3 de En. de 2020
The size of your matrix changes at every iteration. Make zero matrix before looping. For example:
Edj = zeros(d,n);
*edited for corrections from Image Analyst and Jacob Muvingi
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!