difference computations between two sets with the different cardinality

Discussion in 'MATLAB' started by cele, Jul 28, 2004.

  1. cele

    cele Guest

    Thanks any advices in advance.

    Given two sets
    T={i1,i2,¡­,im}, T¡¯={j1,j2,¡­,jn}, m¡Ùn
    also know the distance between any pair of elements from T and T'
    separately.

    how to define the difference and computations between T and T'?
     
    cele, Jul 28, 2004
    #1
    1. Advertisements

  2. This may give you an idea:

    T1f = repmat(T1, length(T2), 1);
    T2f = repmat(T2.', 1, length(T1));
    DiffMat = T1f - T2f;

    This code is obviously not optimized ...

    -Herbert
     
    Herbert Ramoser, Jul 28, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.