Nonfinite endpoints or increment for colon operator in index
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone, someone might have ask before but I didn't find them useful in my case
I'm transforming data from an array to another as below
partialData(1:cx,1:cy,:,1) = data(1:cx,1:cy,s:t);
size(partialData) = 300 X 215 X 901 X 4
size(data) = 300 X 215 X 901
cx, cy, s, t are fix number
so the problem doesn't seems to be matrix size
Moreover, it works for 26 iteration(the code is in a for loop) but later it just comes up this error on 27th iteration
wondering what causes this error and why
thanks in advance!
2 comentarios
Stephen23
el 18 de Feb. de 2017
Editada: Stephen23
el 18 de Feb. de 2017
@Jimmy Ni: please edit your question and show us the complete error message. This means all of the red text.
Also show us what this displays:
disp(cx)
disp(cy)
disp(s)
disp(t)
size(partialData)
size(data)
We need to see MATLAB printed output.
Respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!