Send Messages to Java
Show older comments
Hi
I have a .m files & they needs to be converted to JAR files using Java Builder .
these Jar files are called in java environment(here i am successfully able to pass arguments between java & matlab) .
But now i need to pass a message to java when i am in mid of the execution of my function if any value goes beyond expected values.
for eg: this function finally i am building JAR using Matlab toolbox
function [a] = example (b,c)
d= b+c;
suppose if d value is negative i would like to send message to java saying d value % back to java
a= d+10;
end
Accepted Answer
More Answers (0)
Categories
Find more on Call Java from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!