All Questions
1,109 questions
1
vote
0
answers
50
views
Data conversion between java and matlab buggy? [duplicate]
I tried the following:
I have a MATLAB class Value and want to push it onto a java stack like so
stack = java.util.Stack
a= Value % constructor of MATLAB class
stack.push({a})
Note that I have to ...
-1
votes
1
answer
48
views
Convert MATLAB .m Files to a .jar File for Use in a Java Project in MATLAB R2024a
I'm working with MATLAB R2024a and I have several .m files, each defining a different function. I need to convert all these .m files into a single .jar file so that I can use these functions in a Java ...
0
votes
1
answer
63
views
How to store a Matlab structure in a Java Hashtable and retrieve it
I want to store a Matlab structure (as defined by struct) in an instance of java.util.Hashtable. (If using a different Java hash table class makes this problem easier, I would be interested to hear ...
-1
votes
1
answer
459
views
How to solve Spring Boot .jar file problem?
I have a RESTful API project where I use Spring Boot Maven. I'm also processing in Matlab with a jar file. I converted this project to .jar file, but running it with java -jar demo.jar closes after ...
0
votes
0
answers
409
views
How to fix classpath.txt in the startup directory no longer supported warning?
I've created a Spring Boot Java project and I use Matlab (9.4.0.949201 (R2018a) Update 6, Java 1.8.0_144-b01). After finding the true version for the project (before this I got the "version of ...
1
vote
1
answer
106
views
Is there a way to make discrete signal plots in Java?
I want to make a discrete signal plot in Java, like when using the stem() command in matlab, such that when giving it an array for the x-axis and one for the y-axis, it makes like a scatter plot with ...
0
votes
1
answer
69
views
Signal Processing noise detection
Is there any alogrithm in Digital Signal Processing for detect noise in ECG signal with adaptive threshold, I made alogrithm but when it have a diseases detect as a noise
Anyone give a general ...
0
votes
2
answers
75
views
How to return an array of unknown size from a JNI C function to Java in Android?
I've converted a MATLAB script to C using MATLAB Coder. The script takes a video in uint8 format as an input, performs an object detection task using a customized YOLOv4 DL network to identify objects ...
3
votes
2
answers
240
views
Java - Read only parts of .mat file
I'm trying to read some portions of a .mat file, version v7.3, inside my Java application.
In particular, I'd like to load only some parts of a variable stored inside the .mat file.
Matlab supports ...
0
votes
1
answer
788
views
How i can resolve Java.lang.NoClassDefFoundError?
I'm trying to make a jar of a code that i made in maven. But when i try to execute the jar generated by: mvn clean package
I got the following error:
rror: Unable to initialize main class <...
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 ...
0
votes
0
answers
50
views
How to deal with zero division in the equation of chicken swarm optimization
I am working on chicken swarm optimization using Java and I am a little bit recently learner of Java.
In the question below there are a small amount added to the equation of rooster position update to ...
0
votes
0
answers
65
views
Java Web Request Delay
I’m trying to get data from a website but it takes a second to load (JavaScript table) so I get inconsistent results (sometimes more of the webpage sometimes less) depending on the connection speed.
I’...
0
votes
0
answers
36
views
Matlab R14SP3 - receiving UDP packet
Unfortunately I'm using pretty old Matlab version (R14SP3 from 2005). I'd like to read some UDP packets and analyse them.
As this version of Matlab doesn't contains a package to handle the IP, but it ...
0
votes
1
answer
48
views
Memory leak using editor Open and close document (Codetools.matlab.desktop.editor)
Programmatically opening and closing files in the Matlab editor results in a memory leak. The following code illustrates the problem:
function TestEditorMemoryLeak(filepaths)
for i = 1 : numel(...