will be helpful for those in need The length function as it stands is meant to be used with collections. There is currently no way to get a length of a string in cypher. I've started work on adding a bunch of new string functions like soundex and charindex, and I'll throw this one on the stack of things to do, but I probably won't get it finished for a couple more weeks (and it needs to go through acceptance and even then will only be available as M05+, probably).
Matlab: Comparing two vectors with different length and different values?
By : Mr.xiong
Date : March 29 2020, 07:55 AM
help you fix your problem It sounds like what you are trying to do is have an ismember function for use on real valued data. That is, check for each value B(i) in your vector B whether B(i) is within the tolerance threshold T of at least one value in your vector A
tf = false(1, length(b)); %//the result vector, true if that element of b is in a
t = 0.01; %// the tolerance threshold
for i = 1:length(b)
%// is the absolute difference between the
%//element of a and b less that the threshold?
matches = abs(a - b(i)) < t;
%// if b(i) matches any of the elements of a
tf(i) = any(matches);