
Comments and Discussions



i am doing project water demand forecasting but i dont have any idea regarding the same can any one guide me for the same.





Hi, i'm trying to connect C# with VS 2010 and Matlab 2008a, as someone explain to me, I already add de matlab reference inside VS to my project, but when I want to make an instance of matlab class, it show me this error:
"Interop type 'MLApp.MLAppClass' cannot be embedded. Use the applicable interface instead."
I really don have any idea of why this error is there, in this site:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/99105
someone said that is a problem with the registers, and they fix the problem changing the regitry key of matlab, but in my case, i don't know why, that registry doesn't exist, and matlab work any way.
Please, anyone can help me????





I dont know how to create a neural network in MATLAB and how to simulate and get result in ,MATLAB.





hello every body
iam conducting an application to link Matlab neural networks
with a standalone C# application.i wrote the .m file for creating
and training the network and i want to return the weights parameters
back to the C# application.
A strange exception was thrown when i tried to execute the program
which states an error in a file called subsasgn.m!!!!!!!
iam using matlab 2008.
please try to help me and send me any code
Thanks





does this dll need MATLAB on the pc or not.
i wrote similar code for MATLAB 7.1 using DotNetbuilder but it doesnt work without MATLAB.
do you have the same problem?
A.E.K





only thing you require is matlab run time libs.





Nowadays I am busy looking for a useful algorithm to classify datas using matlab.But I am a new starter in this space,I am really in trouble now.
Could any one helping me?Give me a example to classify data and get the rules for another data which I can use to detect abnormity.Thank you very much!





Hi,
i am working with backpropagation ....to make weather predection ....
my input and target are in excel sheet
input is organized like this
365X5 matrix
5 means five days before the day i want to predect...for example i want to predect 1/1/2007 input will be
26/12/2006 27/12/2006 28/12/2006 29/12/2006 31/12/2006
this is my code
p=wk1read('new3');
T=wk1read('target1');
Test=wk1read('new_test');
p=p';
T=T';
Test=Test';
[r,q]=size(p);
s1=5;
[s2,q]=size(T);
[w1,b1]=rands(s1,r);
[w2,b2]=rands(s2,s1);
net = newff([min(min(p)) max(max(p))],[5 1],{ 'purelin' 'purelin'},'TRAINRP','LEARNGD','MSE');
net.numInputs=5
net.initFcn='initlay';
net.layers{1}.initFcn='initnw';
net.layers{2}.initFcn='initnw';
%net.inputWeights{1,1}.initFcn='rands';
%net.layerWeights{1,2}.initFcn='rands';
net.biases{1}.initFcn='rands';
net.biases{2}.initFcn='rands';
net = init(net);
net.trainParam.mc=.95
net.trainParam.lr=.1
net.trainParam.epochs =2000;
net.trainParam.goal = .01;
net = train(net,p,T);
Y = sim(net,p);
Y(:,5:10)
T(:,5:10)
plot(p,T,p,Y,'o')
x=sim(net,Test);
x'
the problem is that the training stops before the goal is met becuase of reaching somthing called Minimum gradient
or
maximum number of Epochs is reached
this is the output
TRAINRP, Epoch 0/2000, MSE 1135.09/0.01, Gradient 2148.71/1e006
TRAINRP, Epoch 25/2000, MSE 9.68716/0.01, Gradient 0.838298/1e006
TRAINRP, Epoch 50/2000, MSE 9.26178/0.01, Gradient 1.01019/1e006
TRAINRP, Epoch 75/2000, MSE 9.18916/0.01, Gradient 0.341586/1e006
TRAINRP, Epoch 100/2000, MSE 9.189/0.01, Gradient 0.00468536/1e006
TRAINRP, Epoch 125/2000, MSE 9.189/0.01, Gradient 3.40773e005/1e006
TRAINRP, Epoch 145/2000, MSE 9.189/0.01, Gradient 7.38052e007/1e006
TRAINRP, Minimum gradient reached, performance goal was not met.
as you can see , after certain number of epchos performance goal does not change.....why ??????
please help me
thanks
miro_soft





hi can we abe to write the code for neural network without using nn toolbox
if u have please mail me to : dayanandacs@yahoo.co.in





Hello
i design a simple fuzzy system in MATLAB by Fuzzy Toolbox.(FIS project)
in this system i send two crisp inputs and get a one output as crsip output.
i create DLL that contain one m file .in this file i call fuzzy toolbox and send two input and get one output.
my m file is:
function [e]=x(a,b)
fismat = readfis('D:\Matlab\work\TimeTable');
e = evalfis([a, b],fismat)
inputs is a , b and output is e.
my dll contain the above m file.
i create my dll by comtool in matlab.
then i use this dll in my c# program
code is:
object r=0;
fuzzy.fuzzyClass c = new fuzzy.fuzzyClass();
r=c.x(1,ref obj,2,2);
i sent 2,2 as inputs and get output in r.
but in runtime this error happen:
"Variables are not support by EVAL function in compile code"
my problem is how solve this error.
please help and guide me.
please hurry up.





dear mr BaijuMax.
i create a simple system fuzzy system with Matlab Fuzzy Toolbox(FIS project).
this fuzzy system get two(crisp) input and get one crisp output .
i create dll by comtool that contain only one m file .
in this m file i call FIS project and send two input and get one out put
my m file is:
function [e]=x(a,b)
fismat = readfis('D:\Matlab\work\TimeTable');
e = evalfis([a,b],fismat)
my dll contain abow file.
then create c# application that call this method (function x)
but in run time i get a error that is:
variable are not suport by EVAL function...
and my program terminate.
my code in c# is:
object r=0;
fuzzy.fuzzyclass c = new fuzzy.fuzzyclass();
r=c.x(1,ref obj,1,1);
in this code i send two input(a=1 and b=1) and want get result in "r" variable.
my question is how solve this problem.
please help me.





hi, i had the some problem.my .m function is the following:
function [p]=GetProb(Nvezes,UltAcesso)
fis=readfis('Texto_Preditivo');
%p=Nvezes+UltAcesso;
p=evalfis([Nvezes, UltAcesso], fis);
end,
i create the dll with the following command :mcc B 'ccom:addin,addin,1.0' Fuzzy_Texto_Preditivo
then i put the fuzzy file in a folder that is create using the mcc command in my case "addin_mcr".
my code in the windows project is the following :
double x = 10;
double y = 10;
object myResult = myResult = new object();
addin.addin a = new addin.addin();
a.Fuzzy_Texto_Preditivo(1, ref myResult, x, y);
MessageBox.Show(" Result is " + myResult.ToString());
and it works just fine.







General News Suggestion Question Bug Answer Joke Rant Admin Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

