Matlab Javabuilder相关问题
我已经在 Matlab 中编写了某些代码,这些代码在执行时会产生类似结果的列表。我已经在 matlab 上对大量图像进行了测试。
然而,为了将它与 Java 集成,我使用了 javabuilder。
唯一的问题是,构建后,调用该函数的 jar 文件会返回简单的图像列表,而不是相关图像。
谁能解释一下为什么会发生这种情况?
java builder 是否有任何错误?
我已经多次重建 jar 文件,但结果仍然不一样。
I've written certain code in Matlab which upon execution produces list of similar results. I've done testing with lots of images on matlab.
However, to integrate it with Java, I've used javabuilder.
the only problem is that after building, the jar file upon calling the function returns simple list of images rather than relevant images.
Can anyone explain me why this is happening?
Are there any bugs with java builder?
I've rebuilt the jar file several times but results r still not the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过长时间的反复试验,我发现了这个错误。早些时候,我发送了作为整数传递的参数。因此,所有计算都作为整数执行,因此所有值都为零,因此根本没有结果。
现在,我通过将参数解析为双精度来发送我的参数以获得正确的结果。
它按照预期工作..
after a long trial and error session, I've found the bug. Earlier I was sending my parameters which were getting passed as integer. So, all the calculations were getting performed as integer so all the values as zero and hence no result at all..
Now, I'm sending my parameter by parsing them into double to get the correct result..
and its working as per expectation..