Drandn Nryi Drandn
Find those points (xi,yi) who are inside the polygone defined by the vectors (x,y).Syntax: [xin,yin,Ind]=Inside(X,Y,xi,yi)where Ind is the index of (xi,yi) that are inside the polygone Example: %--- create polygone (x,y) phi=linspace(0,2*pi,50); X=(1+0.2*sin(6*phi)).*cos(phi);...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (43): Points Inside polygone Download |
The function is much faster than Matlab's native (dct, idct, dct2, idct2). It also allows N-D (multidimensional) input.Example:x=randn(100,200,300);y=mirt_dctn(x); % forward DCTx=mirt_idctn(y); % inverse DCTFind more at my home page:http://www.bme.ogi.edu/~myronEnjoy and comment below if you like...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (46): Multidimensional Discrete Cosine Transform (DCT) Download |
%A Simple function that makes a 2D histgram% Input: data: two cols, x value; y value% xrange: range and bins for x value (edges)% yrange: range and bins for y value (edges)%Output: Count of a specifice (x,y) bin combination;% Suggested visualizing tool: I like to use imagesc; bar3 will work fine%...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): Function to make a 2D histogram Download |
(This may have been done before ...) These two files plot 2D data sets as vertical or horizontal slices in a 3D coordinate system. It is similar to MATLAB's slice function but requires only 2D data arrays.The following code creates the example in the screenshot:% Create data sets% For the x-y...
Platforms: Matlab
License: Shareware | Cost: $0.00 USD | Size: 10 KB | Download (39): vhslice Download |