i am having some matlab commands and i want to call those matlab commands from my java program.
can anybody tell me the full code by calling a matlab command in java function.
i am trying many examples from net but i am not able to execute the matlab command.

There is a Java library inspired by the class MatlabControl called matlabcontrol which can do everything that class can do and far more. To get started, take a look at the walkthrough.