freezeyang

Saturday, July 18, 2015

matlab filter out '[]' rows

a=Data1(:,[3,4]);
a(all(cellfun(@isempty,a),2), : ) = [];
b=Data2(:,[3,4]);
b(all(cellfun(@isempty,b),2), : ) = [];
Posted by yin at 3:24 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

yin
View my complete profile

Blog Archive

  • ►  2016 (5)
    • ►  November (1)
    • ►  April (1)
    • ►  February (3)
  • ▼  2015 (16)
    • ►  November (4)
    • ▼  July (1)
      • matlab filter out '[]' rows
    • ►  June (2)
    • ►  March (3)
    • ►  February (3)
    • ►  January (3)
  • ►  2014 (6)
    • ►  December (3)
    • ►  November (3)
Simple theme. Powered by Blogger.