For Programmers: Free Programming Magazines  


Home > Archive > Matlab > October 2006 > comparison of 2 cell array vectors









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author comparison of 2 cell array vectors
joseph

2006-10-31, 7:11 pm

Hi,

I am trying to compare two cells array vectors:
for i0=2:length(Cusip6B)
x1=find(strcmp(Cusip2,Cusip6B(i0))==1);

I also tried ismember but i am receiving an empty result for x1
although i can see the common values visually.
what is wrong?
joseph

2006-10-31, 7:11 pm

problem solved. it was the presence of an additional space in one of
the strings
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com