Matlab to Java Package Using matlab builder JA

1 view (last 30 days)
Hi
I have used deploytool in Matlab to convert my gridopt1.m file into java package. The build process is successfully finished. However, when I use converted java package in netbeans it gives following error.
Error using readfis (line 52)
No such file or directory
result full objectnull
Error in gridopt1 (line 2)
Exception in thread "main" java.lang.NullPointerException
at Mymain.Fuzzyinout(Mymain.java:84)
at Mymain.main(Mymain.java:48)
Actually my gridopt1.m file reads .fis file that I had included when I was doing build process in matlab under "shared resources and helper files" section. Could you please anyone How I can make sure it is shipped when I did build process in Matlab. if netbeans needs .fis file so where I can put this .fis file.
My matlab code is as follows:
function out = gridopt (x); % get four input at prompt for x= [1 2 3 4]
fismat =readfis('gridopt.fis'); % read fuzzy file
out=evalfis (x,fismat); % result after defuzzificztion
Thanks

Answers (0)

Categories

Find more on MATLAB Compiler 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!