Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | Matrices and array combinations

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Matrices and array combinations - hr21...@bath.ac.uk - Jul 7 9:58:16 2008



Hi all,

I'm not sure which is the most efficient way and 'fastest' that would deal with these issues.
Say you have:

M= a matrix of 5x3 =[x, y, z];

I want to have 3 rows at a time, so there will be 10 combinations..
the easiest way would be to have 10+ lines each with 
A=[x(1), y(1), z(1); x(2), y(2), z(2); x(3), y(3), z(3)];
B=[x(1), y(1), z(1); x(2), y(2), z(2); x(4), y(4), z(4)];
and so on.. but this is inconvenient..

---------------------------------------------------------
 
Problem 2:

say X=[1   2   2.5   7    30]
    Y=[20  30  2     15   27] 

A) is there a way of getting the closest three values in each array
   e.g. in X it would be 2, 2.5 and 1 (highest correlation)
B) say x,y is one location, x2,y2 is another.. how would I find the
   closest three points of these loacations?

sorry if this is too long, but any help would be appreciated
Thank you in advance..


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )