nntool

Call a java function from matlab script

一笑奈何 提交于 2020-01-06 23:53:13
问题 I'm trying to call a java function from a Matlab script, I tried all the solutions put in the website but I didn't get an issue. My class is simple: package testMatlabInterface; public class TestFunction { private double value; public TestFunction() { value=0; } public double Add(double v) { value += v; return value; } public static void main(String args[]) { } } So I put .java file (also .class ) in my workingspace C:\scriptsMatlab and I added this path to javaclasspath of Matlab, but when I

Using nntool [MATLAB] from command line

末鹿安然 提交于 2019-12-23 21:26:48
问题 I have this code: in = [5 columns of data-points]; out = [1 column of data-points]; net = newfit(in,out,5); net = train(net,in,out); now I want to access the error variable that is generated (so that I can calculate the mean error etc.) run this in a loop, so I want to re-initialize weights between loops. access the variable that stores the time it took to run How can these three things be done from command line ? [I know how these things can be done with nntool GUI] 回答1: Example: % some