help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trouble indexing cell array


From: Tim Meehan
Subject: trouble indexing cell array
Date: Sun, 4 Nov 2012 19:04:18 -0500

I'm having a strange problem shown below. I want to take a subset of a cell array and save it as a new variable. I can index the subset just fine, but when I try to save the subset into a new variable, it saves as only one element in the array. I'm mystified, can anyone tell me what I'm doing wrong?

octave:326> filenames{2:10}
ans = _L_V1d.mat
ans = _L_V1v_vox.mat
ans = _L_V2d.mat
ans = _L_V2v_vox.mat
ans = _L_V3.mat
ans = _L_V3A_dors.mat
ans = _L_V3A_vox.mat
ans = _L_V4_vox.mat
ans = _L_VP_vox.mat
octave:327> test = filenames{2:10}
test = _L_V1d.mat


reply via email to

[Prev in Thread] Current Thread [Next in Thread]