Feeds
提问
A simple problem in creating graph
when i try to create a graph (with the code below), there is a error ('' Undefined function 'G' for input arguments of type 'cha...
11 years 前 | 1 个回答 | 0
1
个回答已回答
Remove rows or cols whose elements are all NaN
Use this : out = A(:,any(~isnan(A))); % for columns out = A(any(~isnan(A),2),:); %for rows
Remove rows or cols whose elements are all NaN
Use this : out = A(:,any(~isnan(A))); % for columns out = A(any(~isnan(A),2),:); %for rows
11 years 前 | 4