From: Gumah on 7 Jun 2010 22:49 hi all lets say we have: for i=1:6 test_cell_c{1,i}=wavefast(a{1,i},1, 'jpeg9.7'); end A=[ a{1,1}; a{1,2};a{1,3};a{1,4};a{1,5};a{1,6}] I want to delete the first element of A ..Any body knows how can do that? Best regards
From: ImageAnalyst on 7 Jun 2010 23:08 On Jun 7, 10:49 pm, Gumah <alrjele2...(a)gmail.com> wrote: > hi all > lets say we have: > for i=1:6 > test_cell_c{1,i}=wavefast(a{1,i},1, 'jpeg9.7'); > end > A=[ a{1,1}; a{1,2};a{1,3};a{1,4};a{1,5};a{1,6}] > > I want to delete the first element of A ..Any body knows how can do > that? > Best regards --------------------------------------- A(1) = [];
From: Walter Roberson on 7 Jun 2010 23:10 Gumah wrote: > lets say we have: > for i=1:6 > test_cell_c{1,i}=wavefast(a{1,i},1, 'jpeg9.7'); > end > A=[ a{1,1}; a{1,2};a{1,3};a{1,4};a{1,5};a{1,6}] > > I want to delete the first element of A ..Any body knows how can do > that? A(1) = []; if you are trying to do it after you have constructed A. However, A is not a cell array. If you want to delete test_cell_c(1,1) then test_cell_c(1,1) = [];
|
Pages: 1 Prev: How to fix random poisson number Next: fmincon optimization |