I've been learning a lot about machine learning (mostly clustering and regressions), but when I've looked into programming libraries/environments, I've found "production ready" ones to be few and far between. What I mean by "production ready" is that it could be incorperated into a product, not just used a tool to fool around with in order to find some relationships. For instants, Pandora is probably a good example of a company that uses some algorithm (I would guess logistical regression, but I don't really know) to compute values from code. In Java, things like Weka and RapidMiner seem to include … +0 Hello! I'm trying to transform working Python code to Matlab code. It's Simpson's rule. But MatLab code is not working. What should I change for in this code? Python: from math import sin def f(x): return ((0.6369)*sin(sin(x))*sin(x)) def method_simpson_compost(f,a,b,n): h = (float(b)-a)/n i = 0 fks = 0.0 while i<=n: xk = a+i*h if i==0 or i==n: fk = f(xk) elif i%2 == 1: fk = 4*f(xk) else: fk = 2*f(xk) fks += fk i += 1 return (h/3)*fks print method_simpson_compost(f, 0, 1.57, 10) MatLab code: file-function "f.m": function func = f(z, x) f = ((0.6369).*sin(z.*sin(x)).*sin(x)) file-function "s.m": function simpson … +0 I applied neural network toolbox to create a multilayer feedforward network. The data is a huge csv file which maps to three outputs. data = load('Train.csv'); Input= data(1:31012,1:40); Output=data(1:31012,41); %net = newff(minmax(Input),[1000,1000,1000]); net = feedforwardnet(10,'trainlm'); view(net) y = net(Input); perf = perform(net,y,Output) but this code always gives this - "Empty state-space model." What am I doing wrong? +0 I have an application thats has been coded in C#. After build it generates a standalone dll file and the exe file. I want to use this code in Matlab. I found out from [this](http://www.mathworks.co.uk/help/matlab/matlab_external/using-a-net-object.html#bshoa6b-1) page that I can load the C# classes or codes into Matlab. dll_in_matlab = NET.addAssembly('location to the dll file) I have the code and the application buty unfortunately I do not understand C# at all. So after using this command I was able to see a .NET object in my workspace and this is what I got for its properties and its classes: evmaps = … +0 Here is the mex code I wrote to read in a tab-delimited file. The mex file got created but it causes my MATLAB to end abruptly and give the following error. Can anyone help me where I am going wrong? Please let me know if any further information is required Abnormal termination: Segmentation violation #include "mex.h" #include "matrix.h" #include #include #include void mexFunction(int nlhs,mxArray *plhs[],int nrhs,const mxArray *prhs[]) { FILE *ptr_file; const char **field_names; /* pointers to field names */ char *buf[1024]; char *temp[20]; int count; int i, j, k, l; int date_field, mva_field, qc_load_field, air_field, qc_air_field, oil_field, qc_oil_field, … +0 I am unable to convert my C file to mex file. Here is the C file I wrote to read in a tab-delimited file. The C program in running, but I am not able to successfully convert it to a mex file. I have also pasted the mex file I tried. Can anyone please tell me where is it that I am going wrong? I think I am making a mistake in declaring the structure. Also after declaring the output structure plhs[0], how do I retrieve it in MATLAB with desired structure elem? C CODE: #include #include #include #define … +0 I am trying to plot a graph in matlab using c++. But the matlab is only giving me an empty graph. void portfolio::viewGraph() { double value[20]; //store portfolio value double time[20]; //store time int i=0,j=1; double cash,p; ifstream in_file("transactionhistory.txt", ios::in); string c; while(in_file>>cash>>p>>c>>c>>c>>c>>c) { value[i]=(p+cash); cout<0.99); fitting using interpolant will give a better fit on more complicated data, but how can I obtain the fitting parameters so that I can use the fit outside of MATLAB? Cheers. +0 [B]Product[/B]: [B][COLOR="Red"]Matlab, Simulink[/COLOR][/B] [B]Problem Statement[/B]: Complex feedback loops implying usage of Unit Delay Block. At certain simulation frame calculation of required values for test generation is becoming complex. Is there a way to override the Unit Delay block output without changing the model (as I am not allowed to do so) rather by using set_param. I am using cvdata/sim/cvhtml combination for my simulation. I tried extracting all the assocaited aparameter sfor Unit Delay using [CODE]get_param(gcb,'ObjectParameters');[/CODE] but was not able to find a suitable parameter to use owing to lack of help information on each parameters. Kindly help me out if … +0 Hello all, I'll hopefully be attending a cognitive neuroscience PhD program next fall and I'd like to learn some programming beforehand (having programming skills helps for lots of neuroimaging labs). Labs I've worked in used UNIX, MATLAB, and E-Prime (visual basic) and I'd really like to improve my knowledge before I go to graduate school. I'm working on learning UNIX and Visual Basic with decent success but as far as C++, I'm lost. I know the book by Eckels (thinking in C++) is highly recommended but it just seems too advanced for me. I get overwhelmed with the material quickly … +0 I am trying to solve a system of 5 equations in 5 unknowns. I am new to the Matlab language. I consulted the documentation and decided that the best way of doing this was to use the solve() function. However, this function does not appear to work properly for 5 unknowns. It is an electrical problem, and I am trying to solve for 5 currents, i1, i2, i3, i4, and i5. However, the function does not recognize v2 as a constant attempts to solve for it, neglecting i5. The code is as follows: [CODE]v2 = 1; syms i1 i2 i3 … +0 Hello, I have a problem with the atan2 function. I have 2 programs, one in C and one in Matlab. Both have an identical implementation. My problem is that I am getting occasionally different values from the atan2 function in C and Matlab. For instance: x=0.29695007709080329 y= -0.96764419257510348 Matlab atan2= 2.8438364863237604 C atan2= 2.8438364863237608 So only the last digit is different (and not in all cases), but unfortunately, I would need the values to be identical. Do you have any ideas it might be like this and how can I solve it? Thank you. +0 Hows it going guys, I just had a question, which I think is simple, but I cant seem to get my head around to the solution. I have a Signals Processing lab coming up on modulation and demodulation. Anyway to cut to the chase, one part of the system requires me to model a rectifier, which in layman's term, is a device that makes any part of a wave that is less than zero, equal zero. For signal x I can write x(x<0)=0 However This model of the rectifier also adds attenuation of +6db To my wave. I was just … +0 Hi all, I am a student and would like to know where i can get a free download of matlab. Is that possible anywhere? +0

The End.