% For version1, we can get the expected answer. but for version2, p==0.3 and p==0.7 give us all zeros?
% What's wrong here? Any comments are welcome!
%% compare version1 and version2
%version1 p = 0.1:0.1:0.9; for q = 0.1:0.1:0.9 r = (p==q) end
No products are associated with this question.
Play games and win prizes!Learn more