Skip to main content

All Questions

0 votes
1 answer
152 views

When I upgrade MatlabRuntime from 2019b to 2021b,I hava a proplem

When I upgrade MatlabRuntime from 2019b to 2021b and I hava a springboot service used matlab, I have a problem,I import newest javabulider.jar(2021b) into my springboot service, then I package and ...
york's user avatar
  • 1
0 votes
1 answer
35 views

Java-wrapped Matlab function: `java` can't load/find `main` sample invoker class

Java-wrapped Matlab function: java can't load/find main sample invoker class I'm following a MATLAB example of wrapping a MATLAB function in a Java interface. The sample driver (i.e., invoker of the ...
user2153235's user avatar
  • 1,115
0 votes
1 answer
211 views

Unable to run Java code on MATLAB Runtime in Unix environment

After exporting a matlab function to java package. I have tried to run the following code unix environment which contains MATLAB runtime. import com.mathworks.toolbox.javabuilder.MWArray; import com....
Abhishek Singh's user avatar
0 votes
1 answer
203 views

Can Java use MATLAB methods provided host machine only has MATLAB Runtime

I am trying to call some of the functions of MATLAB via Java. What I have on my local machine is MATLAB Runtime(64 bit) and Java 8 64 bit. Following piece of code gives an error. Code //Start ...
Abhishek Singh's user avatar
1 vote
2 answers
736 views

Null pointer exception for matlab code [duplicate]

I intend to convert my MATLAB code into java. I am following this official documentation. But after compiling using javac I am unable to complete the step 17. When I run this from cmd java -classpath ...
Arsalan Ahmed's user avatar
2 votes
1 answer
419 views

Convert Object[] result in Matlab Runtime to double[][] array Java

How do I convert Object[] result in Matlab Runtime to double[][] array Java? I've tried with "toDoubleArray" like this: MWNumericArray data1=null; MWNumericArray data2=null; Object[] ...
Yohanes Setiawan's user avatar
0 votes
0 answers
72 views

Insert the output of Matlab Java Package to array

I've build MATLAB java package using Matlab Compiler in Matlab R2016a and I want to call it to my Netbeans project. I look this tutorial and I build this code: MWNumericArray data1=null; ...
Yohanes Setiawan's user avatar
2 votes
2 answers
2k views

What's the difference between using "deploytool" and Matlab Compiler?

What's the function of "deploytool" that makes Java package? Is that different with Matlab Compiler? I want to use Matlab to my Netbeans project.
Yohanes Setiawan's user avatar
3 votes
1 answer
315 views

Matlab Compiler SDK plot waitforFigures function multiple threads

I have created a simple plot with matlab and created a java jar with matlab compiler sdk. I can run the java function created by matlab and see my plot. I wanted to create multiple plots and started ...
Khan's user avatar
  • 1,518
1 vote
1 answer
530 views

how to compile class with matlab compiler sdk?

i would like to compile a java package from matlab code. i have a class in matlab: classdef MyClass properties Prop1 end events Event1 end methods function obj = ...
Khan's user avatar
  • 1,518
4 votes
1 answer
151 views

How to run Matlab compiled Java function?

I have compiled a Matlab script to Java with Matlab compiler SDK. Everything worked fine. Matlab generated a Jar.file and i included it into my Java Project in eclipse. Now my Problem is, the matlab ...
Khan's user avatar
  • 1,518
0 votes
1 answer
54 views

Matlab exe unable to read a file created in Java

My goal is to execute Matlab executables from a Java program. To test this mechanism I have a Java program that takes input and writes the values to a file. The Matlab .exe is programmed to read the ...
Pritam's user avatar
  • 5
0 votes
1 answer
1k views

Change the default JVM version in matlab

i am trying to change the default JVM from matlab but it didn't work. >> !java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit ...
Ouz nour's user avatar
0 votes
0 answers
653 views

Connecting Matlab with java Netbeans

I have create a Java project in Netbeans. I used Matlab for the image processing part of my project. Now I need to connect Matlab to Java. How can I do this?
Shani's user avatar
  • 99
3 votes
0 answers
352 views

Compile Java Library (.jar) for Linux on Windows

I am using the MATLAB Library Compiler to compile a Java .jar on Windows. In my project I have some precompiled mexw64 and mexa64 files. The problem is that mexw64 files are automatically selected. ...
user2939415's user avatar

15 30 50 per page
1
2 3 4 5