@bibek dash : I can not draw "anything".
@ All: I click and drag to write something but all it shows is a polygon. What to do to write "N" in the figure.
I think replacing
C(ia(ib>0), ((numColsA+1):end)) = B(idx, colValB); %line 65
with
C(ib>0, ((numColsA+1):end)) = B(idx, colValB);
will fix left-join problem in the prev post
(adjustment for right-join is similar)
I use this function a lot (2009a).
Pros: mex
Cons: 1) doesn't preserve initial order. Eg.
tmp=mjoin([BM(:,3) (1:size(BM,1))'],1,BM2,1,'l');
BM(tmp(:,2),tmp(:,3:end)); issorted(tmp(:,2)) is false unless BM is sorted by 3d column
2) If while compiling mex unix says "can't find strcmp" - including "#include <stdio.h>
#include <string.h>" solves the problem
Comment only