Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: delete cell element from a big cell array
Replies: 3   Last Post: Dec 13, 2012 1:27 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Eleftheria Paidousi

Posts: 7
Registered: 12/11/12
delete cell element from a big cell array
Posted: Dec 11, 2012 7:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I had a matrix with mixed data in csv of 45212*17 dimensions

i used textscan and created a cell array D{1,m}(n,1)
i want to delete some elements but when i try

for i=1:45212
if (D{1,13}(i,1)>1)
for j=1:17
D(1,j)(i,1)=[]
end
end
end
Error: ()-indexing must appear last in an index expression.
what's the problem?!
what should i do?!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.