cv=std(X)/mean(X);
For example if:
X= [1.7 1.6 2.8 5.6 1.3 2.2 1.3 1.1 3.2 1.5 5.2 4.6 5.8 3.0];
then cv=0.5846.
i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...
cv=std(X)/mean(X);
t_critical= tinv(1-alpha/2,n-2);
Pval=2*(1-tcdf(abs(t),n-2))
Failed to start the Desktop:
Failure loading desktop class
function testJavaHash
import java.util.*;
ja_h = Hashtable;
a='aaa';
b=12.23;
c=[1 2; 3 4];
s='marcin';
%add something to hash
ja_h.put(1,a);
ja_h.put(2,b);
ja_h.put(3,c);
ja_h.put(s,c);
%create iterator;
keys = ArrayList(ja_h.keySet( ));
iterator = keys.iterator();
%iterate over all keys
while iterator.hasNext()
key=iterator.next();
val=ja_h.get(key);
key
val
end
ja_h.put([1 2],2);
ja_h.get([1 2])
ans =
[]
As it can be seen, ja_h.get returns nothing.ja_h.put(num2str([1 2]),2);
ja_h.get(num2str([1 2]))
ans =
2
However this solution does not work for e.g. 2x2 matrices ja_h.put(num2str([1 2; 3 4]),2);
ja_h.get(num2str([1 2; 3 4]))
ans =
[]
Similar problems are with mhashtable package available from Matlab Central File Exchange. I do not know why it is so difficult for Matlab engineers to create native Matlab support for Hash tables?