Nonfinite endpoints or increment for colon operator in index

5 visualizzazioni (ultimi 30 giorni)
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 Commenti
Stephen23
Stephen23 il 18 Feb 2017
Modificato: Stephen23 il 18 Feb 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.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by