Matlab to Java Package Using matlab builder JA

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2012년 11월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by