Matlab to Java Package Using matlab builder JA
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!