Nonfinite endpoints or increment for colon operator in index
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Stephen23
am 18 Feb. 2017
Bearbeitet: Stephen23
am 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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!