function VitPath=VPGenerate(length,TransitionMatrix)
javaclasspath({
   '/home/cocktail/meerbach/Netbeans_projects/Metamacs/dist/lib/colt.jar'...
   '/home/cocktail/meerbach/javawerkstatt/Metamacs/lib/concurrent.jar'...
   '/home/cocktail/meerbach/Netbeans_projects/Metamacs/build/classes/'...
   '/home/cocktail/luedge/mbtoolkit/torsten/FRETanalyser/netbeans_project/build/classes'
  });

import biocomp.metamacs.hmm.newImplementation.*;

Viterbis = RandomSequenceGenerator(length, TransitionMatrix, true);
VitPath = Viterbis.generateSequence();