Re: Filtering , and plotting Multi-Dimensional Arrays
- From: "us " <us@xxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 19:44:02 +0000 (UTC)
Joe Cocker:
<SNIP wants to prune his/her planes...
one of the many solutions
% the planes
m=ceil(3*rand(3,4,3));
% - the threshold/plane
t=[1,3,2];
% the engine
c=squeeze(num2cell(m,[1,2]));
r=cellfun(@(x,y) x==y,c,num2cell(t).','uni',false);
r=cat(3,r{:});
% the result
disp([m,nan(3,1,3),r]);
us
.
- References:
- Filtering , and plotting Multi-Dimensional Arrays
- From: Joe Cocker
- Filtering , and plotting Multi-Dimensional Arrays
- Prev by Date: Re: dynamic allocation in fortran90
- Next by Date: Ugly axis labels on Mac
- Previous by thread: Re: Filtering , and plotting Multi-Dimensional Arrays
- Next by thread: Structure and Array
- Index(es):