Hello guys.
So in my project I used Matlab for digital image processing and now I want to give matlabs output which is 8x8 matrix to java as input how can I do this what are the my alternatives?
see actually i dont know about matlab, but i heared about it.
i will provide a solution for ur question.
do one thing, first of all store the matrix o/p as an list of number in notepad. then read the notepad by using java files and streams concept.
now run all these matlab and java program using Batch files programming (its vry easy)
this is really easy to read a text file (.txt) by using java built-in libraries.
you can read MAT file also but i think it is rather difficult for a beginner. please check this How can I read MAT files from Java? - MATLAB & Simulink
couple of approaches
1. matlab writes the 8x8 matrix to a text file, starts the java program which then read the file
2. matlab uses TCP/IP to transmit the 8x8 matrix to java (bit more complex than the file)
this is really easy to read a text file (.txt) by using java built-in libraries.
you can read MAT file also but i think it is rather difficult for a beginner. please check this How can I read MAT files from Java? - MATLAB & Simulink
I have already tried this but I could not download matlab JA, so I am thinking to make java read input from text file, any good source? ( I have already searched in google and I am working on it but good source still will be very helpful
I have already tried this but I could not download matlab JA, so I am thinking to make java read input from text file, any good source? ( I have already searched in google and I am working on it but good source still will be very helpful